[FIX] website_sale: fix fiscal position of public partner

Error 500 when accessing the shop page when not logged in. The error was
introduced by odoo@4069158c9 where we take the id of the id.

closes odoo/odoo#140675

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
vava-odoo
2023-11-03 16:43:37 +00:00
parent 31ba272955
commit 4048cd824e
+1 -1
View File
@@ -476,7 +476,7 @@ class Website(models.Model):
country = self.env['res.country'].search(
[('code', '=', request.geoip.country_code)],
limit=1,
).id
)
fpos = AccountFiscalPosition._get_fpos_by_region(country.id)
if not fpos: