From a7d9d63c460bb46145b2e61ca61215bc454fce1a Mon Sep 17 00:00:00 2001 From: rhe-odoo Date: Wed, 11 Jan 2023 12:37:03 +0000 Subject: [PATCH] [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) --- addons/point_of_sale/tests/test_frontend.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/addons/point_of_sale/tests/test_frontend.py b/addons/point_of_sale/tests/test_frontend.py index d518022489c..882dcbbc89e 100644 --- a/addons/point_of_sale/tests/test_frontend.py +++ b/addons/point_of_sale/tests/test_frontend.py @@ -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')