Skip to content
Snippets Groups Projects
Commit 28560f2c authored by Jorge Pinna Puissant's avatar Jorge Pinna Puissant
Browse files

[FIX] l10n_ar: error when opening products on e-commerce


- install e-commerce and l10n_ar;
- as a Public user open a product on the shop.

Before this commit, an 403 error was raised.

Now, the public user can navigate through the products.

opw-2462477

closes odoo/odoo#66839

X-original-commit: 9a047c6a
Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
parent ab82de70
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ class AccountFiscalPosition(models.Model):
partner_id).l10n_ar_afip_responsibility_type_id.id),
('company_id', '=', company.id),
]
return self.search(domain, limit=1)
return self.sudo().search(domain, limit=1)
return super().get_fiscal_position(partner_id, delivery_id=delivery_id)
@api.onchange('l10n_ar_afip_responsibility_type_ids', 'country_group_id', 'country_id', 'zip_from', 'zip_to')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment