summaryrefslogtreecommitdiff
path: root/addons/transifex
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-07-22 14:31:58 +0000
committerNans Lefebvre <len@odoo.com>2019-07-22 14:32:05 +0000
commit5e4c1b370123dee4e6d6a91cd9582ba41c4d8bd4 (patch)
treea62c93d583aca21035dc5cfbe562e4085f3f30ae /addons/transifex
parentb6e7af37eb93e08f3bf049bd6eb0c52c13e7b4e8 (diff)
[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: Richard Mathot (rim) <rim@openerp.com>
Diffstat (limited to 'addons/transifex')
0 files changed, 0 insertions, 0 deletions