Repository navigation
[20.0][MIG] edi_queue_oca: Migration to 20.0 - #378
Open
HviorForgeFlow wants to merge 17 commits into
Open
HviorForgeFlow wants to merge 17 commits into
HviorForgeFlow wants to merge 17 commits into
Conversation
Currently translated at 100.0% (8 of 8 strings) Translation: edi-framework-18.0/edi-framework-18.0-edi_queue_oca Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_queue_oca/it/
Add a configurable daily execution time on EDI exchange types and inject the corresponding ETA into queued exchange record jobs. Added fields to `edi.exchange.type` for enabling ETA scheduling, configuring execution hour, minute, and timezone, and logic to compute the next scheduled runtime in UTC. This allows all jobs for a given exchange type to be held and released together at a fixed time each day, supporting off-peak processing and trading partner requirements. Enabling ETA scheduling on an exchange type causes every job created for that type to be held in the queue until the configured time of day, rather than being processed immediately. All jobs that arrive during the day accumulate and are released together at that scheduled time. When ETA scheduling is disabled, jobs are dispatched immediately as usual
…res and scheduling information
Currently translated at 100.0% (18 of 18 strings) Translation: edi-framework-19.0/edi-framework-19.0-edi_queue_oca Translate-URL: https://translation.odoo-community.org/projects/edi-framework-19-0/edi-framework-19-0-edi_queue_oca/it/
Rely on new on fail hooks from the queue job module.
The on fail hooks introduced in b3290c7 are declared in a noupdate data file, so databases created before that commit never got `on_fail_method` on the exchange record job functions, and failed jobs do not update the exchange record state. Add a post-migration script to fill the missing values.
The hook joins `exc_name` and `exc_message` as strings, but the message stored by queue_job is the first argument of the exception, which is the errno for an OSError and may also be missing. The join then raises a TypeError and the exchange record is not updated.
An input record was received and then left for the next run of the input cron to be processed, up to an hour later. Chain the two the way generate and send already are, so a document is processed as soon as it lands.
Introduces a new class to wrap ``_exchange_$action`` methods. It stores the methods' results and a message allowing further customization.
HviorForgeFlow
force-pushed
the
20.0-mig-edi_queue_oca
branch
from
October 21, 2026 11:46
05885da to
89b71a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standard migration + some improvements:
ir.access.csvpytz/utcnowreplaced byzoneinfoanddatetime.now(UTC)Depends on:
CC @ForgeFlow