-
- Downloads
[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 #100126 closes #104891 closes odoo/odoo#105304 X-original-commit: https://github.com/odoo/odoo/commit/74b36c48f73710495e19c3ad258645f05e589a73 Signed-off-by:Djamel Touati (otd) <otd@odoo.com> Co-authored-by:
Thibault Libioulle <thibault.libioulle@aerospacelab.be>
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
- doc/cla/corporate/aerospacelab.md 16 additions, 0 deletionsdoc/cla/corporate/aerospacelab.md
Loading