Rationale ========= Currently, mail channels have 2 modes - They can be used like Discuss channel (chat, livechat, group) - They can be used like a Mailing List (with the "email_send" field) The mix of both feature in the same model causes some code complexity. Several fields are not used in both cases (moderation related field) and the future "Discord like" Discuss will even push the mail channel further than the usage of the mailing list. Because of all those reasons, we want to split the 2 mains features of the mail channels into 2 different modules and models. Purpose ======= This commit remove the moderation feature of the mail channel (email_send=True). This will be re-implemented in a separate module in the next commit. Do not be able to check messages in Discuss anymore because this feature is only used to moderate the message and this feature will be spitted in a new module "mail_group". Links ===== Task-2510267 See odoo/odoo/pull/71599 See odoo/enterprise/pull/19296 See odoo/upgrade/pull/2600
47 lines
2.2 KiB
XML
47 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record forcecreate="True" id="ir_cron_mail_scheduler_action" model="ir.cron">
|
|
<field name="name">Mail: Email Queue Manager</field>
|
|
<field name="model_id" ref="model_mail_mail"/>
|
|
<field name="state">code</field>
|
|
<field name="code">model.process_email_queue()</field>
|
|
<field name="user_id" ref="base.user_root"/>
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">hours</field>
|
|
<field name="numbercall">-1</field>
|
|
<field eval="False" name="doall"/>
|
|
</record>
|
|
|
|
<record id="ir_cron_module_update_notification" model="ir.cron">
|
|
<field name="name">Publisher: Update Notification</field>
|
|
<field name="model_id" ref="model_publisher_warranty_contract"/>
|
|
<field name="state">code</field>
|
|
<field name="code">model.update_notification(None)</field>
|
|
<field name="user_id" ref="base.user_root" />
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">weeks</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="nextcall" eval="(DateTime.now() + timedelta(days=7)).strftime('%Y-%m-%d %H:%M:%S')" />
|
|
<field eval="False" name="doall" />
|
|
<field name="priority">1000</field>
|
|
</record>
|
|
|
|
<record id="base.ir_cron_act" model="ir.actions.act_window">
|
|
<field name="domain" eval="[('id','!=', ref('mail.ir_cron_module_update_notification'))]"/>
|
|
</record>
|
|
|
|
<record id="ir_cron_delete_notification" model="ir.cron">
|
|
<field name="name">Notification: Delete Notifications older than 6 Month</field>
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">days</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="doall" eval="False"/>
|
|
<field name="model_id" ref="model_mail_notification"/>
|
|
<field name="code">model._gc_notifications(max_age_days=180)</field>
|
|
<field name="state">code</field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|