summaryrefslogtreecommitdiff
path: root/addons/stock/views/stock_package_level_views.xml
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2018-07-11 11:04:48 +0200
committerPierre Masereel <pim@odoo.com>2018-07-19 16:42:08 +0200
commit2e4ab78ce7b95003cedaaca3ceeedcf0a2c8e2ff (patch)
treea140b8074e51097996465e1faded79ae5b9e6d4b /addons/stock/views/stock_package_level_views.xml
parent5f83c59f75dd378b31a2de9ee2b26abe42d355c8 (diff)
[FIX] stock: update location depending on state
maybe we should compute
Diffstat (limited to 'addons/stock/views/stock_package_level_views.xml')
-rw-r--r--addons/stock/views/stock_package_level_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/stock_package_level_views.xml b/addons/stock/views/stock_package_level_views.xml
index b25299194eb..169cedc91fc 100644
--- a/addons/stock/views/stock_package_level_views.xml
+++ b/addons/stock/views/stock_package_level_views.xml
@@ -53,7 +53,7 @@
<tree editable="bottom" decoration-muted="state == 'done'">
<field name="is_fresh_package" invisible="1"/>
<field name="package_id" attrs="{'readonly': [('state', 'in', ('confirmed', 'assigned', 'done', 'cancel'))]}" domain="[('location_id', 'child_of', parent.location_id)]" options="{'no_create': True}"/>
- <field name="location_id" domain="[('id', 'child_of', parent.location_id)]" attrs="{'readonly': [('state', 'in', ('confirmed', 'assigned', 'done', 'cancel'))], 'column_invisible': [('parent.picking_type_code', '=', 'incoming')]}" groups="stock.group_stock_multi_locations" force_save="1"/>
+ <field name="location_id" attrs="{'column_invisible': [('parent.picking_type_code', '=', 'incoming')]}" groups="stock.group_stock_multi_locations"/>
<field name="location_dest_id" domain="[('id', 'child_of', parent.location_dest_id)]" attrs="{'column_invisible': [('parent.picking_type_code', '=', 'outgoing')]}" groups="stock.group_stock_multi_locations"/>
<field name="state"/>
<field name="is_done" attrs="{'readonly': [('parent.state', 'in', ('draft', 'new', 'done'))]}"/>