diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-08-17 15:50:44 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-08-17 15:54:41 +0200 |
| commit | d2fd2f20831de39998b5e2822ea5af975d55107d (patch) | |
| tree | 48eecad89eca0c364ae9486373fbcc6e224094bb /odoo/addons/base/wizard/base_module_uninstall.py | |
| parent | c6fa1796af22465024d56e289b54a42af84322ea (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.py | 2 |
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') |
