fix rights

This commit is contained in:
Chill
2024-03-12 17:23:21 +08:00
parent 1f0669b71b
commit 7b82cc0d4d
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class IrModule(models.Model):
def button_get_po(self):
self.ensure_one()
action = self.env.ref('app_odoo_customize.action_server_module_multi_get_po').read()[0]
action = self.env.ref('app_odoo_customize.action_server_module_multi_get_po').sudo().read()[0]
action['context'].update({
'default_lang': self.env.user.lang,
})