summaryrefslogtreecommitdiff
path: root/addons/mrp_subcontracting/models/__init__.py
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-02-24 10:07:23 +0000
committerNicolas Martinelli <nim@odoo.com>2020-02-24 13:59:23 +0000
commite5b9f5e63e1443f8049db8c7eb30c8563d850a38 (patch)
treec1fb869fb22525b1839a33710e5d1edf0adb5786 /addons/mrp_subcontracting/models/__init__.py
parent910442418614e2482058d8e8208a32783891c60e (diff)
[FIX] mrp_subcontracting: multi-step receipt
- Activate the multi-step reception - Create a Subcontracting BOM for product P and supplier S. - Create a PO for S with P - Validate the PO - Validate the input transfer - Validate the internal transfer A error is raised because a mandatory field is not set. The root cause comes from the INT move being flagged as a subcontract move, while it shouldn't be. Indeed, only the input move should be flagged as subcontract. We force the `is_subcontract` value to `False` when a move is copied in the context of a stock rule. opw-2193009 opw-2202727 closes odoo/odoo#46115 X-original-commit: 8795e0f3d4301710a089d263395633759eae76b7 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/mrp_subcontracting/models/__init__.py')
-rw-r--r--addons/mrp_subcontracting/models/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mrp_subcontracting/models/__init__.py b/addons/mrp_subcontracting/models/__init__.py
index 8dddd8d9090..41a12adb994 100644
--- a/addons/mrp_subcontracting/models/__init__.py
+++ b/addons/mrp_subcontracting/models/__init__.py
@@ -7,5 +7,6 @@ from . import res_partner
from . import stock_move
from . import stock_move_line
from . import stock_picking
+from . import stock_rule
from . import stock_warehouse