summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2018-11-20 11:48:47 +0000
committerDenis Ledoux <dle@odoo.com>2018-11-20 11:59:45 +0000
commit48dafd5b2011cee966920f664a904de2e2715ae8 (patch)
tree4cd78af1a476f4b35181939e60ea231e779a9d71 /addons/web/static/src/js/views/basic/basic_model.js
parent8bff607f07f7515c26145c46135855329665a5a2 (diff)
[FIX] point_of_sale: default pricelist test
The POS js tests expect the "Public Pricelist" when selecting a lambda customer in the pos interface. Nevertheless, when installing a localization with a specific currency, other than the currency of the public pricelist, it creates a new pricelist called "Default %(currency)s pricelist for %(company)s" and sets it by default for the customers sale pricelist. See https://github.com/odoo/odoo/commit/787e1037cdca48fe361ae65d790056a3d57e6b67#diff-840bfc6fc7a986fbf0e248c83d2ac1d5R57 Therefore, in the POS js tests, the pricelist selected when selecting a lambda user was no longer 'public pricelist' but the one mentioned above, and the tests therefore failed. The issue is solved by creating a dedicated "Public Pricelist" for the purpose of these tests, and sets it by default for the customer sale pricelist, as well as for the pos config default pricelist. The test case was to install `l10n_pe` with `point_of_sale` while activating the test. e.g. `-i l10n_pe,point_of_sale --test-enable` opw-1890928 opw-1910249 closes odoo/odoo#28839
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions