diff --git a/addons/point_of_sale/models/res_config_settings.py b/addons/point_of_sale/models/res_config_settings.py index 07b2346b75a..7bae915dd3e 100644 --- a/addons/point_of_sale/models/res_config_settings.py +++ b/addons/point_of_sale/models/res_config_settings.py @@ -10,3 +10,10 @@ class ResConfigSettings(models.TransientModel): module_pos_mercury = fields.Boolean(string="Vantiv Payment Terminal", help="The transactions are processed by Vantiv. Set your Vantiv credentials on the related payment method.") module_pos_adyen = fields.Boolean(string="Adyen Payment Terminal", help="The transactions are processed by Adyen. Set your Adyen credentials on the related payment method.") update_stock_quantities = fields.Selection(related="company_id.point_of_sale_update_stock_quantities", readonly=False) + + def set_values(self): + super(ResConfigSettings, self).set_values() + if not self.group_product_pricelist: + configs = self.env['pos.config'].search([('use_pricelist', '=', True)]) + for config in configs: + config.use_pricelist = False