[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>
This commit is contained in:
svs-odoo
2019-09-20 11:00:50 +00:00
parent 921c48bdb0
commit f6da4d57bc
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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
)
+1 -1
View File
@@ -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>