Skip to content

Commit 6d74cdc

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 closes odoo#229264 X-original-commit: 7e46985 Signed-off-by: Levi Siuzdak <[email protected]>
1 parent cda5b31 commit 6d74cdc

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)