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_payment_mode #2005

Merged

Conversation

flachica
Copy link
Contributor

@flachica flachica commented May 6, 2022

Copy link

@jacekmichalski jacekmichalski left a comment

Choose a reason for hiding this comment

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

LGTM

@flachica flachica force-pushed the 15.0-mig-sale_automatic_workflow_payment_mode branch 2 times, most recently from 6699533 to 051aff1 Compare August 13, 2022 11:36
@flachica
Copy link
Contributor Author

@jacekmichalski thanks for your review. I just uploaded changes because there were errors in the tests.

I encourage you to review the PR list above to fully migrate connector_prestashop

@flachica flachica force-pushed the 15.0-mig-sale_automatic_workflow_payment_mode branch from 051aff1 to 6bd541f Compare August 17, 2022 10:35
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@flachica
Copy link
Contributor Author

In order to finish migrating the Prestashop connector I need this PR to be merged. It has two approvals. Any PSC check it out? /cc @HaraldPanten @rafaelbn

@rafaelbn
Copy link
Member

Thank @flachica !

Could you please take care on this #1795 , maybe you should take it for this PR too 😄

@leemannd @hailangvn @gurneyalex is this PR of you interest?

Thank you again!

@rafaelbn
Copy link
Member

/ocabot migration sale_automatic_workflow_payment_mode

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Sep 30, 2022
@flachica flachica force-pushed the 15.0-mig-sale_automatic_workflow_payment_mode branch from 6bd541f to 50374ab Compare October 18, 2022 09:34
@dreispt
Copy link
Member

dreispt commented Nov 15, 2022

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-2005-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Nov 15, 2022
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

@dreispt your merge command was aborted due to failed check(s), which you can inspect on this commit of 15.0-ocabot-merge-pr-2005-by-dreispt-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@danielduqma
Copy link

@flachica could you please rebase to make runboat launch again? Thanks!

[ADD] sale_automatic_workflow_payment_mode
Galoperd and others added 17 commits December 21, 2022 19:23
Currently translated at 90.0% (9 of 10 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_automatic_workflow_payment_mode/es/
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.
Currently translated at 30.0% (3 of 10 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_automatic_workflow_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_automatic_workflow_payment_mode/sl/
Parts of `sale_automatic_workflow_payment_mode` have been merged into `sale_automatic_workflow`.
But these parts have been not removed from `sale_automatic_workflow_payment_mode`.

This PR clean both modules after this merge.

Originals PR of the merge: OCA#1789
…ng SO's workflow if payment.mode hasn't one set

It seems this feature was added during the 14.0 migration PR, here: 111bb97
But it wasn't like this before, and IMO it was ok.
- Move register_payment option from sale_automatic_workflow_payment_mode to
sale_automatic_workflow.
- Add _register_payments function in sale_automatic_workflow.
TT31208
...payment when no fixed journal and remove sale_workflow_process
@flachica flachica force-pushed the 15.0-mig-sale_automatic_workflow_payment_mode branch from 50374ab to f9cb74e Compare December 21, 2022 18:24
@flachica
Copy link
Contributor Author

Done @danielduqma

@danielduqma
Copy link

Thanks! @dreispt could you please run merge command? Now all checks have passed and it will work.

Regards

@dreispt
Copy link
Member

dreispt commented Dec 30, 2022

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-2005-by-dreispt-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Dec 30, 2022
Signed-off-by dreispt
@OCA-git-bot
Copy link
Contributor

It looks like something changed on 15.0 in the meantime.
Let me try again (no action is required from you).
Prepared branch 15.0-ocabot-merge-pr-2005-by-dreispt-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9008e32 into OCA:15.0 Dec 30, 2022
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 51bbdab. Thanks a lot for contributing to OCA. ❤️

pilarvargas-tecnativa pushed a commit to Tecnativa/sale-workflow that referenced this pull request Feb 7, 2023
Signed-off-by dreispt
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.