summaryrefslogtreecommitdiff
path: root/odoo/addons/base/wizard/base_module_uninstall.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2018-08-17 15:50:44 +0200
committerMartin Trigaux <mat@odoo.com>2018-08-17 15:54:41 +0200
commitd2fd2f20831de39998b5e2822ea5af975d55107d (patch)
tree48eecad89eca0c364ae9486373fbcc6e224094bb /odoo/addons/base/wizard/base_module_uninstall.py
parentc6fa1796af22465024d56e289b54a42af84322ea (diff)
[IMP] base: avoid creating new module
The field module_id is only informative Fixes #25705 Courtesy of Swapnesh Shah and Pedro M. Baeza
Diffstat (limited to 'odoo/addons/base/wizard/base_module_uninstall.py')
-rw-r--r--odoo/addons/base/wizard/base_module_uninstall.py2
1 files changed, 1 insertions, 1 deletions
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')