Skip to content
Snippets Groups Projects
Commit 5e4c1b37 authored by Nans Lefebvre's avatar Nans Lefebvre
Browse files

[FIX] point_of_sale: check constraints before opening POS session


Set up the POS config to use a default pricelist that is archived.
Open a new POS session.
The constraints are checked, and an exception is raised:
"The default pricelist must be included in the available pricelists."
However, if the session is already opened, the check is not done at resume.
If the pricelist is archived, the session fails to load entirely:
after loading phase, the screen turns black and nothing happens.
Since the constraints are really useful to load the POS, we trigger an explicit
check of all constraints (there are a lot more than our example) when opening
the POS.

opw 2033453

closes odoo/odoo#35077

Signed-off-by: default avatarRichard Mathot (rim) <rim@openerp.com>
parent b6e7af37
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment