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

@@ -23,7 +23,7 @@
{ {
'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data,Development Enhance', 'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data,Development Enhance',
'version': '24.03.11', 'version': '24.03.12',
'author': 'odooai.cn', 'author': 'odooai.cn',
'category': 'Extra Tools', 'category': 'Extra Tools',
'website': 'https://www.odooai.cn', 'website': 'https://www.odooai.cn',

View File

@@ -58,7 +58,7 @@ class IrModule(models.Model):
def button_get_po(self): def button_get_po(self):
self.ensure_one() 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({ action['context'].update({
'default_lang': self.env.user.lang, 'default_lang': self.env.user.lang,
}) })