diff options
| author | Simon Lejeune <sle@openerp.com> | 2017-10-31 15:46:22 +0100 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2017-10-31 15:48:10 +0100 |
| commit | c8b2f5ca9ec0bbb5af06be8f8cf93122d08c41fe (patch) | |
| tree | 7a59eec5fa215308a50bbebc1a1d888995fea4c2 | |
| parent | 81a5c1563acbe04ac9b512a89152f7e7fb713691 (diff) | |
[FIX] stock: show detailed operations view
When enabling the unit of measures, it was not possible to save a move
line as product_uom_id is required in the model and readonly in the
view. We add the "force_save" attribute.
Courtesy of @lap-odoo
| -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 a49f8bf188a..4689cc07cd9 100644 --- a/addons/stock/views/stock_picking_views.xml +++ b/addons/stock/views/stock_picking_views.xml @@ -259,7 +259,7 @@ <field name="move_line_ids" attrs="{'readonly': [('state', '=', 'done'), ('is_locked', '=', True)]}" context="{'default_picking_id': id, 'default_location_id': location_id, 'default_location_dest_id': location_dest_id}"> <tree editable="bottom" decoration-muted="result_package_id or (state == 'done' and is_locked == True)" decoration-danger="qty_done>product_uom_qty and state!='done'" decoration-success="qty_done==product_uom_qty and state!='done' and not result_package_id"> <field name="product_id" required="1"/> - <field name="product_uom_id" attrs="{'readonly': [('state', '!=', 'draft')]}" groups="product.group_uom"/> + <field name="product_uom_id" force_save="1" attrs="{'readonly': [('state', '!=', 'draft')]}" groups="product.group_uom"/> <field name="package_id" groups="stock.group_tracking_lot"/> <field name="location_id" groups="stock.group_stock_multi_locations,stock.group_tracking_lot" domain="[('id', 'child_of', parent.location_id)]"/> <field name="location_dest_id" groups="stock.group_stock_multi_locations,stock.group_tracking_lot" domain="[('id', 'child_of', parent.location_dest_id)]"/> |
