summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2019-11-20 10:50:58 +0000
committerfw-bot <otis@odoo.com>2019-11-22 14:06:49 +0000
commit8c5bd29d413f3dfecdfa7ee1d3408ee6d6b83faa (patch)
treea81828b47d8034ad025385bda8a4475383d61d13
parent5706c7fa5be8b2a03fa9411aceec0800375356ce (diff)
[FIX] stock: display assign SN immediate transfer
Before this commit, when user creates a receipt for a product tracked by serial number, using immediate transfer, the fields to generate and assign SN was hidden. The reason was the move is confirmed in this case, and those fields was displayed only for partially available and assigned moves. task-2123761 X-original-commit: 4f9b170e857509cf34e072051086a7e9590c330d
-rw-r--r--addons/stock/models/stock_move.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py
index 9d445a4496f..7f436e0bf9e 100644
--- a/addons/stock/models/stock_move.py
+++ b/addons/stock/models/stock_move.py
@@ -187,7 +187,7 @@ class StockMove(models.Model):
for move in self:
move.display_assign_serial = (
move.has_tracking == 'serial' and
- move.state in ('partially_available', 'assigned') and
+ move.state in ('partially_available', 'assigned', 'confirmed') and
move.picking_type_id.use_create_lots and
not move.picking_type_id.use_existing_lots and
not move.picking_type_id.show_reserved