summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2020-07-24 10:05:51 +0000
committerNicolas Martinelli <nim@odoo.com>2020-07-24 12:28:43 +0000
commit3a2623ac2a68e4e45e51e397d6643913643c1ce6 (patch)
tree96c7d8a886a56918fa4b4f2949ef0f0a1dda3f4a
parent4cddc497600547581ce51bfe779098c29e7115d6 (diff)
[FIX] stock: set package after validation
- Activate the packaging - Show detailed operation of receipts - Create a receipt for some products - Validate - Unlock the picking - Set a Destination Package, save The product doesn't appear in the package. The trigger was incorrectly removed in 8750d6a97954e59259d and 507101434f9221f2cfa6d. opw-2299529 closes odoo/odoo#54908 X-original-commit: aeb969a0f0b1786a2303906352931229b2f63bb9 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
-rw-r--r--addons/stock/models/stock_move_line.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/stock/models/stock_move_line.py b/addons/stock/models/stock_move_line.py
index 068142958b5..ad170bc57ae 100644
--- a/addons/stock/models/stock_move_line.py
+++ b/addons/stock/models/stock_move_line.py
@@ -237,6 +237,7 @@ class StockMoveLine(models.Model):
('location_dest_id', 'stock.location'),
('lot_id', 'stock.production.lot'),
('package_id', 'stock.quant.package'),
+ ('result_package_id', 'stock.quant.package'),
('owner_id', 'res.partner')
]
updates = {}