From 81f024b545c8ddeeed040fcde42db3f5f7e2a468 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 29 Jul 2019 15:59:40 +0200 Subject: [PATCH] [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 --- addons/point_of_sale/models/pos_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/',