Fix test case module sale_automatic_workflow_payment_mode#6
Open
kv1612 wants to merge 8 commits intooca-port-pr-1782-from-13.0-to-14.0from
Open
Fix test case module sale_automatic_workflow_payment_mode#6kv1612 wants to merge 8 commits intooca-port-pr-1782-from-13.0-to-14.0from
kv1612 wants to merge 8 commits intooca-port-pr-1782-from-13.0-to-14.0from
Conversation
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.
update on user causes locking for jobs, so only 1 tread is allowed for channel, but core implementation was updated and now it relying on first on given context instead of the user
Change to the correct company in environment to pick up the correct company dependent fields TT28906
…rder to remove mock
- Move register_payment option from sale_automatic_workflow_payment_mode to sale_automatic_workflow. - Add _register_payments function in sale_automatic_workflow. TT31208
… Sale Workflow Process TT30759
b94db2d to
f47587d
Compare
4fd426e to
ad999eb
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.
No description provided.