Files
odoo_source/addons/account_edi/data/cron.xml
T
Josse Colpaert c5781ffa29 [FIX] account_edi: avoid accidental deactivation of the EDI cron on update
The problem is that when we update the account_edi, e.g. by updating the
base module, the cron gets deactivated because initially the ir.cron
record is set to active False and we activate it when we have an
edi format that requires web services.

By setting the record to noupdate, it will not execute setting it to
False again when updating the module.  (It will however not update
the record to noupdate)

closes odoo/odoo#89794

X-original-commit: 69ba48ea8cca151cb242118305dd8c152da266d1
Signed-off-by: William André (wan) <wan@odoo.com>
2022-04-27 09:00:44 +02:00

13 lines
552 B
XML

<odoo noupdate="1">
<record id="ir_cron_edi_network" model="ir.cron">
<field name="name">EDI : Perform web services operations</field>
<field name="model_id" ref="model_account_edi_document"/>
<field name="state">code</field>
<field name="code">model._cron_process_documents_web_services(job_count=20)</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="active">False</field>
</record>
</odoo>