Description: The mail_activity table can grow quite large, for example a business that is making heavy use of the CRM module, slowing down searches on said table. A lot of users sets activities and then forget about them, just polluting the database with useless data. Also we currently keep the activities of archived users, which will never be resolved, because said users has been archived, so it is supposed that he will never be able to log in again to remove their scheduled activities. Solution: - Delete activities when archiving an user - Add a gc routine to delete overdue activities older than X years, where X is a system parameter. Reference: task-3337077 closes odoo/odoo#130895 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
10 lines
283 B
XML
10 lines
283 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo noupdate="1">
|
|
|
|
<record id="gc_delete_overdue_activities_year_threshold" model="ir.config_parameter">
|
|
<field name="key">mail.activity.gc.delete_overdue_years</field>
|
|
<field name="value">3</field>
|
|
</record>
|
|
|
|
</odoo>
|