[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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user