diff --git a/addons/stock/res_config.py b/addons/stock/res_config.py index 1a8b86fd54f..f00e1001d5a 100644 --- a/addons/stock/res_config.py +++ b/addons/stock/res_config.py @@ -80,11 +80,11 @@ This installs the module product_expiry."""), help="""Allows to configure inventory valuations on products and product categories."""), 'group_stock_multiple_locations': fields.boolean("Manage multiple locations and warehouses", implied_group='stock.group_locations', - help="""This allows to configure and use multiple stock locations and warehouses, - instead of having a single default one."""), - 'group_stock_adv_location': fields.boolean("Active Push and Pull inventory flows", + help="""This will show you the locations and allows you to + define multiple picking types and warehouses. """), + 'group_stock_adv_location': fields.boolean("Manage advanced routes for your warehouse", implied_group='stock.group_adv_location', - help="""This option supplements the warehouse application by effectively implementing Push and Pull inventory flows. """), + help="""This option supplements the warehouse application by effectively implementing Push and Pull inventory flows through Routes. """), 'decimal_precision': fields.integer('Decimal precision on weight', help="As an example, a decimal precision of 2 will allow weights like: 9.99 kg, whereas a decimal precision of 4 will allow weights like: 0.0231 kg."), 'propagation_minimum_delta': fields.related('company_id', 'propagation_minimum_delta', type='integer', string="Minimum days to trigger a propagation of date change in pushed/pull flows."), 'module_stock_dropshipping': fields.boolean("Manage dropshipping", @@ -93,6 +93,13 @@ This installs the module product_expiry."""), 'module_stock_picking_wave': fields.boolean('Manage picking wave', help='Install the picking wave module which will help you grouping your pickings and processing them in batch'), } + def onchange_adv_location(self, cr, uid, ids, group_stock_adv_location, context=None): + if group_stock_adv_location: + return {'value': { + 'group_stock_multiple_locations': True, + }} + return {} + def _default_company(self, cr, uid, context=None): user = self.pool.get('res.users').browse(cr, uid, uid, context=context) return user.company_id.id diff --git a/addons/stock/res_config_view.xml b/addons/stock/res_config_view.xml index 4a2f8b2686e..f47d738d348 100644 --- a/addons/stock/res_config_view.xml +++ b/addons/stock/res_config_view.xml @@ -71,25 +71,13 @@