[FIX] python call action rights

This commit is contained in:
Chill
2024-03-12 17:12:12 +08:00
parent f50ca7b3de
commit 355958e8f3
9 changed files with 11 additions and 11 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,
})