Skip to content
Snippets Groups Projects
Commit 4c08e2a9 authored by Rémi Rahir's avatar Rémi Rahir
Browse files

[FIX] iap: install web_settings_dashboard along with iap

parent 1e21b79f
Branches
Tags
No related merge requests found
......@@ -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()
......@@ -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',
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment