summaryrefslogtreecommitdiff
path: root/addons/website_sale_stock
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-04-14 12:13:54 +0000
committerRémy Voet (ryv) <ryv@odoo.com>2020-05-25 08:50:02 +0000
commit8414e6b9fde7bfcd0977fbb85464a73ab6f61a05 (patch)
tree71f3550a4f7a25e598ba8b62ee222ff1f709825e /addons/website_sale_stock
parent82ca6b92c89a73a7a261decc10d0ea6ea8a573fa (diff)
[IMP] stock: handle multi-warehouse with the same logic of multi-company
Activate the multi-warehouse automatically when there is more than 1 in a company. Then remove the multi-warehouse setting in the config, and allow to create warehouse. Because create a warehouse can change groups of the user, we reload the page when there is any modification. Update warehouse demo data accordingly (remove the second warehouse of the second company). task-2196687 closes odoo/odoo#49625 Related: odoo/upgrade#1253 Related: odoo/enterprise#9934 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/website_sale_stock')
-rw-r--r--addons/website_sale_stock/views/res_config_settings_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_sale_stock/views/res_config_settings_views.xml b/addons/website_sale_stock/views/res_config_settings_views.xml
index 77b7e6818ef..64b527e5b99 100644
--- a/addons/website_sale_stock/views/res_config_settings_views.xml
+++ b/addons/website_sale_stock/views/res_config_settings_views.xml
@@ -14,7 +14,7 @@
<div class="content-group">
<div class="row mt16"
id="website_warehouse_setting"
- attrs="{'invisible': [('group_stock_multi_warehouses', '=', False)]}">
+ groups="stock.group_stock_multi_warehouses">
<label for="website_warehouse_id" string="Warehouse" class="col-lg-3 o_light_label" />
<field name="website_warehouse_id"/>
</div>