Issue for bi_sales_mrp_delivery (#4,548)
Status: OPEN
Date: 08/11/2021
ID: 4,548
S/O number: SO2021/1700686
Reviewer: Hiral Bhatt
Module Name: bi_sales_mrp_delivery
Version: 13.0
Tags:

Assigned to
Contact
Vrushparva Vaishnav
vrushparva.vaishnav@browseinfo.in

Description
Hello,

After deploying your module on our odoo SH instance, we get a bunch of failed test errors:

2021-11-05 19:37:09,003 40 ERROR co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_lead_time: FAIL: TestSaleMrpLeadTime.test_00_product_company_level_delays

Traceback (most recent call last):

File "/home/odoo/src/odoo/addons/sale_mrp/tests/test_sale_mrp_lead_time.py", line 69, in test_00_product_company_level_delays

msg='Schedule date of picking should be equal to: Order date + Customer Lead Time - Sales Safety Days.'

AssertionError: datetime.datetime(2021, 11, 5, 19, 37, 8) != datetime.datetime(2021, 11, 7, 19, 37, 8) within datetime.timedelta(0, 1) delta : Schedule date of picking should be equal to: Order date + Customer Lead Time - Sales Safety Days.



2021-11-05 19:37:09,006 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_lead_time: Starting TestSaleMrpLeadTime.test_01_product_route_level_delays ...

2021-11-05 19:37:11,231 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_lead_time: ======================================================================

2021-11-05 19:37:11,231 40 ERROR co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_lead_time: FAIL: TestSaleMrpLeadTime.test_01_product_route_level_delays

Traceback (most recent call last):

File "/home/odoo/src/odoo/addons/sale_mrp/tests/test_sale_mrp_lead_time.py", line 120, in test_01_product_route_level_delays

msg='Schedule date of ship type picking should be equal to: order date + Customer Lead Time - pull rule delay.'

AssertionError: datetime.datetime(2021, 11, 5, 19, 37, 10) != datetime.datetime(2021, 11, 8, 19, 37, 10) within datetime.timedelta(0, 10) delta : Schedule date of ship type picking should be equal to: order date + Customer Lead Time - pull rule delay.



2021-11-05 19:37:11,237 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: Ran 2 tests in 5.530s

2021-11-05 19:37:11,238 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: odoo.addons.sale_mrp.tests.test_sale_mrp_lead_time tested in 5.53s, 4824 queries

2021-11-05 19:37:11,238 40 ERROR co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: Module sale_mrp: 2 failures, 0 errors

2021-11-05 19:37:11,238 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: odoo.addons.sale_mrp.tests.test_sale_mrp_procurement running tests.

2021-11-05 19:37:11,238 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_procurement: Starting TestSaleMrpProcurement.test_sale_mrp ...

2021-11-05 19:37:13,553 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_procurement: Starting TestSaleMrpProcurement.test_sale_mrp_pickings ...

2021-11-05 19:37:17,822 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_procurement: ======================================================================

2021-11-05 19:37:17,822 40 ERROR co7-technologies-app-delivery-dates-somo-3547724 odoo.addons.sale_mrp.tests.test_sale_mrp_procurement: FAIL: TestSaleMrpProcurement.test_sale_mrp_pickings

Traceback (most recent call last):

File "/home/odoo/src/odoo/addons/sale_mrp/tests/test_sale_mrp_procurement.py", line 169, in test_sale_mrp_pickings

self.assertEqual(len(pickings), 1)

AssertionError: 2 != 1



2021-11-05 19:37:17,825 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: Ran 2 tests in 6.586s

2021-11-05 19:37:17,826 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: odoo.addons.sale_mrp.tests.test_sale_mrp_procurement tested in 6.59s, 5229 queries

2021-11-05 19:37:17,826 40 ERROR co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.module: Module sale_mrp: 1 failures, 0 errors

2021-11-05 19:37:17,846 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.loading: 84 modules loaded in 54.15s, 38721 queries

2021-11-05 19:37:18,564 40 INFO co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.registry: verifying fields for every extended model

2021-11-05 19:37:19,188 40 ERROR co7-technologies-app-delivery-dates-somo-3547724 odoo.modules.loading: At least one test failed when loading the modules.

https://co7-technologies-app-delivery-dates-somo-3547724.dev.odoo.com/web#cids=1&home=

The issue is not during use but during the build and test process. Tests are failing in base modules when your addon is installed, but working without it. The issue is, I believe, that you have not extended the base module tests to account for new functionality.

Message and communication history