Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] sale_automatic_workflow_job #2054

Open
wants to merge 17 commits into
base: 15.0
Choose a base branch
from

Conversation

Vimal-OSI
Copy link

No description provided.

@dreispt
Copy link
Sponsor Member

dreispt commented Jun 7, 2022

Pre-commit is red.
I see unrelated a "Workflow-Sale Quotation Numeration " in the history.

@dreispt dreispt self-requested a review June 7, 2022 12:47
guewen and others added 16 commits June 7, 2022 18:25
Use Queue Jobs to process the Sales Automatic Workflow actions.

The default behavior of the automatic workflow module is to use a
scheduled action that searches all the record that need a workflow
action and sequentially process all of them.

It can hit some limits when the number of records is too high.

This module keeps the scheduled action to search the records, but
instead of directly executing the actions (confirm a sales order,
create invoices for a sales order, validate invoices, ...), it
creates one job per operation to do.

It uses an identity key on the jobs so it will not create the same
job for the same record and same operation twice.

~

I needed to extract methods in `sale_automatic_workflow` in order
to be able to execute them as jobs.

A new decorator "job_auto_delay" (to eventually move in queue_job) makes
these methods automatically delayed when called.
@dreispt dreispt force-pushed the 15.0-mig-sale_automatic_workflow_job branch from ec10500 to 90fd693 Compare June 7, 2022 17:26
@rafaelbn
Copy link
Member

/ocabot migration sale_automatic_workflow_job

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Jun 22, 2022
@rousseldenis
Copy link
Sponsor Contributor

@Vimal-OSI Could you follow migration guide, especially the full process part ? Thanks

https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet