diff --git a/addons/point_of_sale/static/src/js/screens.js b/addons/point_of_sale/static/src/js/screens.js index 88fcb617ccb..8ae422f1a01 100644 --- a/addons/point_of_sale/static/src/js/screens.js +++ b/addons/point_of_sale/static/src/js/screens.js @@ -2223,7 +2223,7 @@ define_action_button({ 'name': 'set_pricelist', 'widget': set_pricelist_button, 'condition': function(){ - return this.pos.pricelists.length > 1; + return this.pos.config.use_pricelist && this.pos.pricelists.length > 1; }, }); diff --git a/addons/point_of_sale/tests/test_frontend.py b/addons/point_of_sale/tests/test_frontend.py index 6f604e13451..0c0765979e2 100644 --- a/addons/point_of_sale/tests/test_frontend.py +++ b/addons/point_of_sale/tests/test_frontend.py @@ -274,6 +274,7 @@ class TestUi(odoo.tests.HttpCase): 'type': 'cash', 'company_id': main_company.id, 'journal_user': True})], + 'use_pricelist': True, 'available_pricelist_ids': [(4, pricelist.id) for pricelist in all_pricelists], })