diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-03-07 14:25:17 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-03-07 14:25:17 +0100 |
| commit | fcea61b6ebce561743bfe3876dd5a705ce6a7bad (patch) | |
| tree | d7c805a2deb3281d9227cb2958a29854f01cdd4c /addons/mail/data/mail_data.xml | |
| parent | 1aac220ee25b7dc45c073c76112e50c68a3c4944 (diff) | |
[IMP] mail: added a cron job to delete mail attachments (lost user input or reports generated on-the-fly). They have: res_model = mail.compose.message; res_id 0; more than one day of inactivity.
bzr revid: tde@openerp.com-20130307132517-4xivu90dzn3o744a
Diffstat (limited to 'addons/mail/data/mail_data.xml')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 3f517ee7858..02cfd626768 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -27,6 +27,19 @@ <field name="priority">1000</field> </record> + <record id="ir_cron_mail_garbage_collect_attachments" model="ir.cron"> + <field name="name">Garbage Collect Mail Attachments</field> + <field eval="True" name="active" /> + <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 eval="False" name="doall" /> + <field name="model">mail.thread</field> + <field name="function">_garbage_collect_attachments</field> + <field name="args">()</field> + </record> + <!-- Discussion subtype for messaging / Chatter --> <record id="mt_comment" model="mail.message.subtype"> <field name="name">Discussions</field> |
