Skip to content

Commit

Permalink
[FIX] mgmtsystem_evaluation: import cron
Browse files Browse the repository at this point in the history
  • Loading branch information
kluna1998 committed Dec 20, 2024
1 parent e3f0711 commit 784317d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
1 change: 1 addition & 0 deletions mgmtsystem_evaluation/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"views/mgmtsystem_evaluation.xml",
"templates/asset_backend.xml",
"views/res_partner.xml",
"data/cron.xml",
],
"demo": ["demo/demo.xml"],
}
25 changes: 14 additions & 11 deletions mgmtsystem_evaluation/data/cron.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record name="cron_evaluation" model="ir.cron">
<field name="name">Automatic evaluation generation</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field
<record id="cron_evaluation" model="ir.cron">
<field name="name">Automatic evaluation generation</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field
name="nextcall"
eval="(datetime.now() + timedelta(minutes=5)).strftime('%Y-%m-%d %H:%M:%S')"
/>
<field name="doall" eval="False" />
<field name="model_id" ref="model_mgmtsystem_evaluation" />
<field name="code">model._cron_new_evaluation()</field>
<field name="state">code</field>
</record>
<field
name="model_id"
ref="mgmtsystem_evaluation.model_mgmtsystem_evaluation"
/>
<field name="code">model._cron_new_evaluation()</field>
<field name="doall" eval="False" />
<field name="state">code</field>
</record>
</odoo>

0 comments on commit 784317d

Please sign in to comment.