summaryrefslogtreecommitdiff
path: root/addons/mrp/data/mrp_data.xml
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-10-23 17:43:56 +0200
committerArnold Moyaux <arm@odoo.com>2017-10-30 09:40:55 +0100
commitfaa0616fc9250d92af722efcc714b8e980dba440 (patch)
tree618f3bf2f99b9d40a14279623724cb7d43301b6b /addons/mrp/data/mrp_data.xml
parent1a93e8285afae14e7862ebc4b6d6ee17ac8f5396 (diff)
[FIX] stock, mrp, stock_dropshipping: location access right
Use case to reproduce the bug: - Enable multi company and create a second one. - Add both company to another user and give him stock manager rights - Login on the second user and select as active the created company - Go to product and create one -> access right error on stock.location.route message. It happens because the routes 'buy' is selected by default. However the route buy when created use the default company although it's generic for all companies. This commit change the data in order to remove the company on routes buy, mto, manufacture and drop_shipping. Since this commit was released after v11 release, it could happens that already created database still have the problem thus the solution is to remove manually the company on the routes quoted above. opw-777718
Diffstat (limited to 'addons/mrp/data/mrp_data.xml')
-rw-r--r--addons/mrp/data/mrp_data.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mrp/data/mrp_data.xml b/addons/mrp/data/mrp_data.xml
index 9b84b7fc3fb..85fffdb3bd9 100644
--- a/addons/mrp/data/mrp_data.xml
+++ b/addons/mrp/data/mrp_data.xml
@@ -35,6 +35,7 @@
<record id="route_warehouse0_manufacture" model='stock.location.route'>
<field name="name">Manufacture</field>
+ <field name="company_id"></field>
<field name="sequence">5</field>
</record>