diff --git a/addons/point_of_sale/i18n/point_of_sale.pot b/addons/point_of_sale/i18n/point_of_sale.pot index afcd99ae40ce4f2130501524de0b33cb5fbff113..a7fd33329e75773db969b4a6eb405f7903014519 100644 --- a/addons/point_of_sale/i18n/point_of_sale.pot +++ b/addons/point_of_sale/i18n/point_of_sale.pot @@ -7082,13 +7082,6 @@ msgid "" " Or you can add demo data for testing purpose. Please mind that this is an irreversible action." msgstr "" -#. module: point_of_sale -#. odoo-python -#: code:addons/point_of_sale/models/pos_config.py:0 -#, python-format -msgid "You can only have one cash payment method." -msgstr "" - #. module: point_of_sale #. odoo-python #: code:addons/point_of_sale/models/pos_order.py:0 diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index 3ce7ce67bdf1e29c8c5d1a1a58d0e9f68862102c..48255be5ce11a5b858950cf1bbade7f320da77db 100644 --- a/addons/point_of_sale/models/pos_config.py +++ b/addons/point_of_sale/models/pos_config.py @@ -183,13 +183,6 @@ class PosConfig(models.Model): for config in self: config.cash_control = bool(config.payment_method_ids.filtered('is_cash_count')) - @api.onchange('payment_method_ids') - def _check_cash_payment_method(self): - for config in self: - if len(config.payment_method_ids.filtered('is_cash_count')) > 1: - config.payment_method_ids = config.payment_method_ids._origin - raise ValidationError(_('You can only have one cash payment method.')) - @api.depends('company_id') def _compute_company_has_template(self): for config in self: