mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] 14.0 pms housekeeping (#44)
* [IMP] housekeeping first commint * [ADD] Demo data * [ADD] Models * [FIX] demo notes * [IMP] Housekeeping basics * [IMP] PMS Housekeeping Task and Rack management * [FIX] Icons and date parameter * [ADD] Today tasks kanban * [ADD] Housekeeping form View * [ADD] Housekeeping Lost & Found * [ADD] Precommit and README Co-authored-by: Darío Lodeiros <dario@commitsun.com>
This commit is contained in:
21
pms_housekeeping/data/cron_jobs.xml
Normal file
21
pms_housekeeping/data/cron_jobs.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<data noupdate="0">
|
||||
<!-- Set all task -->
|
||||
<record model="ir.cron" id="add_all_today_tasks">
|
||||
<field name="name">Automatic add all today housekeeping tasks</field>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="user_id" ref="base.user_root" />
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field name="doall" eval="False" />
|
||||
<field name="state">code</field>
|
||||
<field name="model_id" ref="model_pms_room" />
|
||||
<field
|
||||
name="nextcall"
|
||||
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 03:00:00')"
|
||||
/>
|
||||
<field name="code">model.add_all_today_tasks()</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user