[FIX] iap: install web_settings_dashboard along with iap

This commit is contained in:
Rémi Rahir
2018-05-24 09:56:02 +02:00
parent 1e21b79feb
commit 4c08e2a945
2 changed files with 12 additions and 0 deletions
+9
View File
@@ -3,3 +3,12 @@
from . import models
from .models.iap import jsonrpc, charge, InsufficientCreditError
from odoo.api import Environment, SUPERUSER_ID
def _install_web_settings_dashboard(cr, registry):
env = Environment(cr, SUPERUSER_ID, {})
env['ir.module.module'].search([
('name', '=', 'web_settings_dashboard'),
('state', '=', 'uninstalled'),
]).button_install()
+3
View File
@@ -20,4 +20,7 @@ This module provides standard tools (account model, context manager and helpers)
'static/src/xml/iap_templates.xml',
],
'auto_install': True,
# needed because dependencies can't be changed in a stable version
# TODO in master: add web_settings_dashboard to depends and remove this
'post_init_hook': '_install_web_settings_dashboard',
}