Skip to content

Commit

Permalink
[FIX] config_parameter must be readed with sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella authored and rven committed Oct 26, 2019
1 parent 8d28915 commit bba3646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion partner_firstname/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
'name': 'Partner first name and last name',
'summary': "Split first name and last name for non company partners",
'version': '11.0.1.0.0',
'version': '11.0.1.0.1',
'author': "Camptocamp, "
"Grupo ESOC Ingeniería de Servicios, "
"Tecnativa, "
Expand Down
2 changes: 1 addition & 1 deletion partner_firstname/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _get_names_order(self):
"""Get names order configuration from system parameters.
You can override this method to read configuration from language,
country, company or other"""
return self.env['ir.config_parameter'].get_param(
return self.env['ir.config_parameter'].sudo().get_param(
'partner_names_order', self._names_order_default())

@api.model
Expand Down

0 comments on commit bba3646

Please sign in to comment.