summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorsvs-odoo <svs@odoo.com>2019-09-20 11:00:50 +0000
committersvs-odoo <svs@odoo.com>2019-09-20 11:00:50 +0000
commitf6da4d57bcc8e19ae0bd6d571926706bee46e08f (patch)
tree9a2955cfe9f4496879f65ed2fa1f8608fd42ba9a /addons
parent921c48bdb0aeedce51e307ede061ad0fe41feda6 (diff)
[FIX] stock: display generate serial number
Before this commit, the field to generate serial numbers in the detailed operation move view wasn't displayed. closes odoo/odoo#37197 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/stock/models/stock_move.py1
-rw-r--r--addons/stock/views/stock_picking_views.xml2
2 files changed, 1 insertions, 2 deletions
diff --git a/addons/stock/models/stock_move.py b/addons/stock/models/stock_move.py
index 034f04774a2..a22a29b40f8 100644
--- a/addons/stock/models/stock_move.py
+++ b/addons/stock/models/stock_move.py
@@ -189,7 +189,6 @@ class StockMove(models.Model):
move.state in ('partially_available', 'assigned') and
move.picking_type_id.use_create_lots and
not move.picking_type_id.use_existing_lots and
- move.picking_type_id.show_operations and
not move.picking_type_id.show_reserved
)
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml
index 4e221415c2f..9a5de20ba16 100644
--- a/addons/stock/views/stock_picking_views.xml
+++ b/addons/stock/views/stock_picking_views.xml
@@ -349,7 +349,7 @@
icon="fa-plus-square"
width="0"
role="img" title="Assign Serial Numbers"
- attrs="{'invisible': [('display_assign_serial', '=', False)]}"/>
+ attrs="{'invisible': ['|', ('display_assign_serial', '=', False), ('show_operations', '=', False)]}"/>
</tree>
<form string="Stock Moves">
<header>