diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-02-02 14:52:15 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-02-02 14:52:15 +0100 |
| commit | 469e04e97c2aa60d9d41bd430e0aeba77ee6f9dd (patch) | |
| tree | 0119f59009274d2c569920432c9a7fabafde0974 /addons/web_planner/models/web_planner.py | |
| parent | 78d20b552b4374b94aec7097c0e6a48a3dd2d961 (diff) | |
| parent | 2611a8198eaac60cf424742e4dc411700e439352 (diff) | |
[MERGE] forward port of branch saas-8 up to 2611a81
Diffstat (limited to 'addons/web_planner/models/web_planner.py')
| -rw-r--r-- | addons/web_planner/models/web_planner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_planner/models/web_planner.py b/addons/web_planner/models/web_planner.py index 9733dee9e57..ae16d429b30 100644 --- a/addons/web_planner/models/web_planner.py +++ b/addons/web_planner/models/web_planner.py @@ -62,9 +62,9 @@ class Planner(models.Model): params['model'] = 'ir.module.module' # setting the module if module_name: - installed = self.env['ir.module.module']._installed() - if module_name in installed: - params['id'] = installed[module_name] + module = self.env['ir.module.module'].sudo().search([('name', '=', module_name)], limit=1) + if module: + params['id'] = module.id return "/web#%s" % (urlencode(params),) @api.model |
