Commit Graph
4 Commits
Author SHA1 Message Date
Laurent Smet c9f9f859ca [IMP] account_edi: Replace high velocity CRON by CRON triggers
So, instead of waiting for the cron every hour, we create
a cron trigger, which is created/activated every time
we post/cancel an invoice.  When the CRON worker is available,
it can take the job immediately.

To be sure that we don't miss any crons or that events
might be needed that are not triggered, we still launch the
cron every day.

A test was added to check that the crons are correctly
triggered.

closes odoo/odoo#67088

Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-04-01 13:55:48 +00:00
Benjamin Frantzen (bfr) c1e49dc34d [IMP] account_edi: set the CRON interval to hours instead of minutes
closes odoo/odoo#62733

X-original-commit: 1e5eba693bd17ef9202ecd298bf24e2e68133616
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
2020-12-02 11:50:55 +00:00
Benjamin Frantzen (bfr) d6356f7c37 [IMP] account_edi: cron is disabled by default
The cron to send the invoice to web-services is disabled until an edi.format that needs web services is created

closes odoo/odoo#56131

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-19 11:56:29 +00:00
Benjamin Frantzen (bfr) 013936261b [IMP] account_edi: added flows to manage web-services and payments.
Added edi.documents representing an electronic document for a move and an edi.format.
A format can be asynchronous if it needs to call a web-service to generate the document, it will then be generated by the CRON (otherwise it's generated in post).
The formats can support payments if needed (can be generated immediately or by the CRON).
Added support for errors and related views.
Setting defaults format on a journal can be done automatically (based on a hook).
Added tests : xml comparaison with diff and helpers to test a EDI import/export

--task: 2247368
2020-08-17 10:22:01 +00:00