From 5a939ba4d87aa289182edf98468c0723e2bba700 Mon Sep 17 00:00:00 2001 From: Pierre Masereel <pim@odoo.com> Date: Mon, 5 Sep 2016 13:44:57 +0200 Subject: [PATCH] [FIX] base: error during migration There is a traceback when we are trying to install module from the list view and clicking on the button 'Module Immediate Install'. This traceback appears because of a server action that has not been migrated during the rev https://github.com/odoo/odoo/commit/d465346f1 To fix this, we've converted the server action in new API. --- .../addons/base/module/wizard/base_module_immediate_install.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/module/wizard/base_module_immediate_install.xml b/odoo/addons/base/module/wizard/base_module_immediate_install.xml index 66a962144e65..1b02d218e89e 100644 --- a/odoo/addons/base/module/wizard/base_module_immediate_install.xml +++ b/odoo/addons/base/module/wizard/base_module_immediate_install.xml @@ -7,7 +7,7 @@ <field name="type">ir.actions.server</field> <field name="model_id" ref="model_ir_module_module" /> <field name="state">code</field> - <field name="code">self.button_immediate_install(cr, uid, context.get('active_ids', []), context=context)</field> + <field name="code">obj.browse(context.get('active_ids', [])).button_immediate_install()</field> </record> <record model="ir.values" id="action_module_immediate_install"> -- GitLab