diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-10-02 15:47:26 +0200 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-10-02 15:50:37 +0200 |
| commit | afaf7cc7ccf305fd06920512e82f17aca092c01d (patch) | |
| tree | c61e12b8f675fb60cd68bacd860f28a57549d24e /addons | |
| parent | ff702bc6e80a077e34b0e384e05beafc415e949c (diff) | |
[FIX] stock: lock/unlock in classi view
Wrong condition implemented in rev[1] and it was not possible to add a
stock move in a ready picking anymore in the classic view.
[1] f359ca0585c8273a4ad7d3d05c38decc500a662b
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/stock/views/stock_picking_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml index 118cdda7690..d0c64324917 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -277,7 +277,7 @@ </page> <page string="Operations"> <field name="id" invisible="1"/> - <field name="move_lines" attrs="{'readonly': ['|', '&', ('show_operations', '=', True), ('state', '=', 'done'), ('is_locked', '=', True)]}" context="{'picking_type_code': picking_type_code, 'default_picking_id': id, 'form_view_ref':'stock.view_move_picking_form', 'address_in_id': partner_id, 'default_picking_type_id': picking_type_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id}"> + <field name="move_lines" attrs="{'readonly': ['|', ('show_operations', '=', True), '&', ('state', '=', 'done'), ('is_locked', '=', True)]}" context="{'picking_type_code': picking_type_code, 'default_picking_id': id, 'form_view_ref':'stock.view_move_picking_form', 'address_in_id': partner_id, 'default_picking_type_id': picking_type_id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id}"> <tree decoration-danger="state != 'done' and quantity_done > reserved_availability" decoration-muted="scrapped == True or state == 'cancel' or (state == 'done' and is_locked == True)" string="Stock Moves" editable="bottom"> <field name="name" invisible="1"/> <field name="date_expected" invisible="1"/> |
