[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#109698

X-original-commit: 53e942fd84549a04af2f9257ec3e80633b4f59ea
Signed-off-by: Trinh Jacky (trj) <trj@odoo.com>
This commit is contained in:
rhe-odoo
2023-01-18 13:25:24 +01:00
parent 153f143003
commit a7d9d63c46
+1 -5
View File
@@ -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')