[FIX] sale_mrp{,_margin}: fix dependency break on purchase_price
This commit fixes premature usage of `purchase_price` field on sale.order.line model, before its definition in sale_margin module. Since this test requires both sale_mrp and sale_stock_margin to pass, this commit adds an auto-install bridge module that solely address this issue. Steps to reproduce: - Install sale_mrp module - Run tests (at least .test_kit_cost_calculation) Problem: Traceback: AttributeError: 'sale.order.line' object has no attribute 'purchase_price' See odoo/odoo#100126 Part-of: odoo/odoo#104891
Showing
- addons/sale_mrp/tests/test_sale_mrp_flow.py 0 additions, 43 deletionsaddons/sale_mrp/tests/test_sale_mrp_flow.py
- addons/sale_mrp_margin/__init__.py 2 additions, 0 deletionsaddons/sale_mrp_margin/__init__.py
- addons/sale_mrp_margin/__manifest__.py 9 additions, 0 deletionsaddons/sale_mrp_margin/__manifest__.py
- addons/sale_mrp_margin/tests/__init__.py 4 additions, 0 deletionsaddons/sale_mrp_margin/tests/__init__.py
- addons/sale_mrp_margin/tests/test_sale_mrp_flow.py 52 additions, 0 deletionsaddons/sale_mrp_margin/tests/test_sale_mrp_flow.py
Loading
Please register or sign in to comment