summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-07-29 15:59:40 +0200
committerChristophe Simonis <chs@odoo.com>2019-07-29 15:59:40 +0200
commit81f024b545c8ddeeed040fcde42db3f5f7e2a468 (patch)
treeaa9be9058cc234d51c57bfca1657dfae5cec2924
parentac5c493c377bbedcdaeca9a1610fd3b9e474942d (diff)
[FIX] point_of_sale: allow opening the pos interface
The `cash_control` constraint [1] is only relevant when the field `cash_control` is modified. Do not check it when opening the pos UI. [1] added by 733fb360d25f885bd5c5b4688bbbc7f306f6f648
-rw-r--r--addons/point_of_sale/models/pos_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py
index aee62049864..014b11cab7b 100644
--- a/addons/point_of_sale/models/pos_config.py
+++ b/addons/point_of_sale/models/pos_config.py
@@ -461,7 +461,7 @@ class PosConfig(models.Model):
""" open the pos interface """
self.ensure_one()
# check all constraints, raises if any is not met
- self._validate_fields(self._fields)
+ self._validate_fields(set(self._fields) - {"cash_control"})
return {
'type': 'ir.actions.act_url',
'url': '/pos/web/',