[FIX] iap: install web_settings_dashboard along with iap
This commit is contained in:
@@ -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',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user