forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathir_cron.xml
More file actions
17 lines (17 loc) · 765 Bytes
/
ir_cron.xml
File metadata and controls
17 lines (17 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record forcecreate="True" id="ir_cron_check_primeship_expired" model="ir.cron">
<field name="name">Check for Expired Partner Primeships</field>
<field name="model_id" ref="sale_partner_primeship.model_res_partner" />
<field name="state">code</field>
<field name="code">model._check_expired_primeships()</field>
<field name="active" eval="True" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field
name="nextcall"
eval="(datetime.now() + timedelta(days=1)).strftime('%Y-%m-%d 00:00:00')"
/>
</record>
</odoo>