Skip to content

Commit 7e46985

Browse files
committed
[FIX] website_sale: enable pricelists for GeoIP test
Versions -------- - saas-18.3+ Steps ----- 1. Have a database without demo data; 2. run `test_cart_new_pricelist_from_geoip`. Issue ----- Test fails, due to the order not having a pricelist. Cause ----- Pricelists aren't enabled by default without demo data. Solution -------- Call `self._enable_pricelists()` at the start of the test. runbot-232989
1 parent 94fb970 commit 7e46985

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

addons/website_sale/tests/test_website_sale_cart.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def test_cart_new_pricelist_from_geoip(self):
401401
"""Check that, when adding a new partner to a website order, the partner's GeoIP
402402
is factored into the pricelist recomputation.
403403
"""
404+
self._enable_pricelists()
404405
eu_group = self.env.ref('base.europe')
405406
not_eu_group = self.env['res.country.group'].create({
406407
'name': "Not EU",

0 commit comments

Comments
 (0)