[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>
This commit is contained in:
Josse Colpaert
2022-04-27 09:00:44 +02:00
parent 096c207241
commit c5781ffa29
+1 -1
View File
@@ -1,4 +1,4 @@
<odoo>
<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"/>