[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user