Skip to content
Snippets Groups Projects
Commit 81f024b5 authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[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 733fb360
parent ac5c493c
Branches
Tags
No related merge requests found
......@@ -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/',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment