From d2fd2f20831de39998b5e2822ea5af975d55107d Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 17 Aug 2018 15:50:44 +0200 Subject: [PATCH] [IMP] base: avoid creating new module The field module_id is only informative Fixes #25705 Courtesy of Swapnesh Shah and Pedro M. Baeza --- odoo/addons/base/wizard/base_module_uninstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/wizard/base_module_uninstall.py b/odoo/addons/base/wizard/base_module_uninstall.py index 60585fc7a73..a347930a037 100644 --- a/odoo/addons/base/wizard/base_module_uninstall.py +++ b/odoo/addons/base/wizard/base_module_uninstall.py @@ -12,7 +12,7 @@ class BaseModuleUninstall(models.TransientModel): module_id = fields.Many2one( 'ir.module.module', string="Module", required=True, domain=[('state', 'in', ['installed', 'to upgrade', 'to install'])], - ondelete='cascade' + ondelete='cascade', readonly=True, ) module_ids = fields.Many2many('ir.module.module', string="Impacted modules", compute='_compute_module_ids')