When adding alias domain in v17 support of configuration parameter was dropped. We moved from singleton configuration to multi domains using real models. This means most of mail support lies in mail while part of it was in base beforehand. In some cases we want to let people do some basic configuration using base module then install mail which could migrate this ICP based configuration into new models. This is notably the case with odoo.sh where mail is not always automatically installed. Use case is: install base, do some configuration using ICP allowing notably to setup website / server domains, main mail configuration, ... then let people install modules on top of that configuration which generally installs mail. With this change existing ir.config_parameters matching pre v17 names are now used to bootstrap alias domain table at mail module initialization. Task-3789584 closes odoo/odoo#156654 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
12 lines
292 B
Python
12 lines
292 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import models
|
|
from . import tools
|
|
from . import wizard
|
|
from . import controllers
|
|
from . import populate
|
|
|
|
def _mail_post_init(env):
|
|
env['mail.alias.domain']._migrate_icp_to_domain()
|