Browse Source
[ADD] cron to generate next planning + [CHANGE] shift generated are already confirmed
pull/26/head
[ADD] cron to generate next planning + [CHANGE] shift generated are already confirmed
pull/26/head
Thibault Francois
7 years ago
4 changed files with 69 additions and 25 deletions
-
35beesdoo_shift/data/cron.xml
-
8beesdoo_shift/data/system_parameter.xml
-
32beesdoo_shift/models/planning.py
-
19beesdoo_shift/views/planning.xml
@ -1,12 +1,27 @@ |
|||
<odoo> |
|||
<record id="ir_cron_update_today" model="ir.cron"> |
|||
<field name="name">Update Cooperatoor status base on the date</field> |
|||
<field name="interval_number">24</field> |
|||
<field name="interval_type">hours</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="doall" eval="False" /> |
|||
<field name="model">cooperative.status</field> |
|||
<field name="function">_set_today</field> |
|||
<field name="args">()</field> |
|||
</record> |
|||
<data noupdate="1"> |
|||
<record id="ir_cron_update_today" model="ir.cron"> |
|||
<field name="name">Update Cooperatoor status base on the date</field> |
|||
<field name="interval_number">24</field> |
|||
<field name="interval_type">hours</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="doall" eval="False" /> |
|||
<field name="model">cooperative.status</field> |
|||
<field name="function">_set_today</field> |
|||
<field name="args">()</field> |
|||
</record> |
|||
|
|||
|
|||
<record id="ir_cron_update_today" model="ir.cron"> |
|||
<field name="name">Generate Next Planning</field> |
|||
<field name="interval_number">1</field> |
|||
<field name="interval_type">weeks</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="doall" eval="False" /> |
|||
<field name="model">beesdoo.shift.planning</field> |
|||
<field name="function">_generate_next_planning</field> |
|||
<field name="args">()</field> |
|||
<field name="active" eval="False" /> |
|||
</record> |
|||
</data> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue