Skip to content

Commit

Permalink
Merge PR #617 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Dec 24, 2024
2 parents e3f0711 + 784317d commit 4e8da0a
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 4e8da0a

Please sign in to comment.