summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-07-31 11:51:37 +0200
committerGoffin Simon <sig@odoo.com>2018-07-31 15:07:53 +0200
commitc75f4fbcd121bfb21ce6221b0d810cc55e814d9b (patch)
treeba7b6fddd6ff191c8a0acd6e23468a094e45ae2d
parente1da65841a9999e67d5c50e116fb15123edfce56 (diff)
[FIX] stock: Source and Destination on pickings
Steps to reproduce the bug: - Go on a picking with an operation type of type "vendor" (e.g. a receipt) : the field source location appears while it should be the destination location. - Go on a picking with an operation type of type "customer " (e.g. a delivery) : the field destination location appears while it should be the source location. opw:1869145
-rw-r--r--addons/stock/views/stock_picking_views.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock/views/stock_picking_views.xml b/addons/stock/views/stock_picking_views.xml
index 18f248f58d4..fc12abbdbad 100644
--- a/addons/stock/views/stock_picking_views.xml
+++ b/addons/stock/views/stock_picking_views.xml
@@ -242,8 +242,8 @@
<group>
<group>
<field name="partner_id" attrs="{'invisible': [('picking_type_code', '=', 'internal')]}"/>
- <field name="location_id" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('picking_type_code', '=', 'outgoing')]}"/>
- <field name="location_dest_id" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('picking_type_code', '=', 'incoming')]}"/>
+ <field name="location_id" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('picking_type_code', '=', 'incoming')]}"/>
+ <field name="location_dest_id" groups="stock.group_stock_multi_locations" attrs="{'invisible': [('picking_type_code', '=', 'outgoing')]}"/>
<field name="backorder_id" readonly="1" attrs="{'invisible': [('backorder_id','=',False)]}"/>
</group>
<group>