Skip to content

Comments

[16.0] account_invoice_transmit_peppol: Speedup and indepotent#14

Draft
lmignon wants to merge 1 commit intoedido-eu:16.0from
acsone:16.0-account_invoice_transmit_peppol-one-transfer-job
Draft

[16.0] account_invoice_transmit_peppol: Speedup and indepotent#14
lmignon wants to merge 1 commit intoedido-eu:16.0from
acsone:16.0-account_invoice_transmit_peppol-one-transfer-job

Conversation

@lmignon
Copy link
Contributor

@lmignon lmignon commented Jan 21, 2026

No description provided.

@lmignon lmignon force-pushed the 16.0-account_invoice_transmit_peppol-one-transfer-job branch 4 times, most recently from 876f66f to 7ca0da0 Compare January 21, 2026 14:05
Comment on lines 15 to 16
not self.is_move_sent
and not self.invoice_exported
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow resending in case of delivery failure

Suggested change
not self.is_move_sent
and not self.invoice_exported
not invoice_export_confirmed

priority=40,
channel="root.invoice_transmit.peppol",
)._transmit_invoice_by_peppol()
if not invoice._is_transmissible_by_peppol():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe generate a first job calling


to update invoice_export_confirmed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should create a delayable method on the invoice itself to check its status...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds a good idea if invoice_export is True. That would be a limited number of case

* Uses the invoice's name into the job description in place of the dislay_name since the last one consume a lot of ressources to be computed
* Makes the delayed method idempotent
@lmignon lmignon force-pushed the 16.0-account_invoice_transmit_peppol-one-transfer-job branch from 7ca0da0 to 9437113 Compare January 22, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants