summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2018-01-09 12:59:49 +0100
committerGoffin Simon <sig@odoo.com>2018-01-10 11:53:07 +0100
commitcd05c16641ef9e5f84dcb1d4af70a2caab464ecb (patch)
tree4c90292bc23224ecbbdbf1c5e838ac5a9fb35e5c
parentff0abd214c89dce19984ed0f3c72ea556e23da01 (diff)
[FIX] mrp: location_id domain on mrp.routing
Steps to reproduce the bug: - Create a routing with a Product Location of type view - Create a MO with this routing - Click on "Plan" without clicking on "Check for Availability" - Complete the work orders - Go back to the MO and try to put it in state "Done" Bug: Impossible to set the MO on state "Done". By clicking on "Mark as Done", it returns: You cannot take products from or deliver products to a location of type "view" opw:803580
-rw-r--r--addons/mrp/views/mrp_routing_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mrp/views/mrp_routing_views.xml b/addons/mrp/views/mrp_routing_views.xml
index bd761c371f4..8ee1b962f8d 100644
--- a/addons/mrp/views/mrp_routing_views.xml
+++ b/addons/mrp/views/mrp_routing_views.xml
@@ -85,7 +85,7 @@
<field name="name"/>
</group>
<group>
- <field name="location_id" groups="stock.group_adv_location"/>
+ <field name="location_id" groups="stock.group_adv_location" domain="[('usage', '!=', 'view')]"/>
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
</group>
</group>