Skip to content
Snippets Groups Projects
Commit a94bec19 authored by rhe-odoo's avatar rhe-odoo
Browse files

[FIX] point_of_sale: price list test


This commit fix the test when different localisation are used to make sure that the public pricelist is used.
Before, when pos_pricelist test was done and some localisation were installed, it could lead to test failure because the default pricelist wasn't correct on the partners.

closes odoo/odoo#109691

X-original-commit: 53e942fd
Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
parent d7300cf5
Branches
Tags
No related merge requests found
......@@ -470,11 +470,7 @@ class TestPointOfSaleHttpCommon(AccountTestInvoicingHttpCommon):
# Change the default sale pricelist of customers,
# so the js tests can expect deterministically this pricelist when selecting a customer.
env['ir.property']._set_default(
"property_product_pricelist",
"res.partner",
public_pricelist,
)
env['ir.property']._set_default("property_product_pricelist", "res.partner", public_pricelist, main_company)
@odoo.tests.tagged('post_install', '-at_install')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment