Browse Source

[IMP] add cron for send batch mail for tax shelter

pull/1/head
houssine 8 years ago
parent
commit
20ab68606c
  1. 3
      easy_my_coop_taxshelter_report/__openerp__.py
  2. 16
      easy_my_coop_taxshelter_report/data/scheduler_data.xml

3
easy_my_coop_taxshelter_report/__openerp__.py

@ -21,7 +21,7 @@
{ {
"name": "Easy My Coop tax shelter report", "name": "Easy My Coop tax shelter report",
"version": "1.0", "version": "1.0",
"depends": ["easy_my_coop","theme_light"],
"depends": ["easy_my_coop"],
"author": "Houssine BAKKALI <houssine.bakkali@gmail.com>", "author": "Houssine BAKKALI <houssine.bakkali@gmail.com>",
"category": "Cooperative management", "category": "Cooperative management",
"description": """ "description": """
@ -34,6 +34,7 @@
'reports/tax_shelter_shares_report.xml', 'reports/tax_shelter_shares_report.xml',
'views/tax_shelter_declaration_view.xml', 'views/tax_shelter_declaration_view.xml',
'data/mail_template_data.xml', 'data/mail_template_data.xml',
'data/scheduler_data.xml',
], ],
'installable': True, 'installable': True,
} }

16
easy_my_coop_taxshelter_report/data/scheduler_data.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<record forcecreate="True" id="ir_cron_mail_tax_shelter_action" model="ir.cron">
<field name="name">Tax shelter mail batch mail</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"/>
<field eval="'tax.shelter.certificate'" name="model"/>
<field eval="'batch_send_tax_shelter_certificate'" name="function"/>
<field eval="'()'" name="args"/>
</record>
</data>
</odoo>
Loading…
Cancel
Save