Cleanup alias usage and definition. Prepare code to ease future changes and
improvements. Notably
* add a 'alias_email' computed field on the mixin allowing to have the
complete alias email when set, and False in case it is inactive or linked
to an inactive alias domain;
* remove unnecessary alias_id field definition when just the help differs
from the standard definition coming from the 'mail.alias.mixin';
* use fields coming from 'inherits' instead of using alias_id and its sub-
fields; notably use 'alias_display_name' and 'alias_email' fields;
* remove useless custom code and management;
* improve alias parameters support code in configuration parameters;
Task-3453343 (Mail: Cleanup Alias Usage)
Prepares Task-36879 (Mail: Support MultiCompany Aliases)
Part-of: odoo/odoo#130632
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': "Mail Group",
|
|
'summary': "Manage your mailing lists",
|
|
'description': """
|
|
Manage your mailing lists from Odoo.
|
|
""",
|
|
'version': '1.1',
|
|
'depends': [
|
|
'mail',
|
|
'portal',
|
|
],
|
|
'data': [
|
|
'data/ir_cron_data.xml',
|
|
'data/mail_templates.xml',
|
|
'data/mail_template_data.xml',
|
|
'data/res_groups.xml',
|
|
'security/ir.model.access.csv',
|
|
'security/mail_group_security.xml',
|
|
'wizard/mail_group_message_reject_views.xml',
|
|
'views/mail_group_member_views.xml',
|
|
'views/mail_group_message_views.xml',
|
|
'views/mail_group_moderation_views.xml',
|
|
'views/mail_group_views.xml',
|
|
'views/mail_group_menus.xml',
|
|
'views/portal_templates.xml',
|
|
],
|
|
'demo': [
|
|
'data/mail_group_demo.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_frontend': [
|
|
'mail_group/static/src/css/mail_group.scss',
|
|
'mail_group/static/src/js/*',
|
|
],
|
|
'web.assets_backend': [
|
|
'mail_group/static/src/css/mail_group_backend.scss',
|
|
],
|
|
},
|
|
'license': 'LGPL-3',
|
|
}
|