Tuesday, January 31, 2023
27 changes
Miscellaneous changes
Forward-Port-Of: odoo/enterprise#36463
Original PR description
Forward-Port-Of: odoo/enterprise#36463
The `_l10n_mx_edi_cron_update_sat_status` cron has to post lots of requests to the mx gov SAT portal. These post requests can take quite some time and in some cases lead to a TimeoutError and a complete rollback. To avoid losing already posted requests and processed responses the edi.documents to process are split in batch of 50. The transaction is committed after each batch so that the already processed batches are not rollbacked on Timeout. opw-3018561-avd Forward-Port-Of: odoo/enterpri
Original PR description
The `_l10n_mx_edi_cron_update_sat_status` cron has to post lots of requests to the mx gov SAT portal. These post requests can take quite some time and in some cases lead to a TimeoutError and a complete rollback. To avoid losing already posted requests and processed responses the edi.documents to process are split in batch of 50. The transaction is committed after each batch so that the already processed batches are not rollbacked on Timeout. opw-3018561-avd Forward-Port-Of: odoo/enterprise#34521