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_validity_auto_cancel #2335

Merged
merged 5 commits into from
Jan 31, 2025

Conversation

JuanyDForgeflow
Copy link

@ForgeFlow
Migration to 15.0

@rousseldenis
Copy link
Contributor

/ocabot migration sale_validity_auto_cancel

@OCA-git-bot
Copy link
Contributor

The migration issue (#1741) has not been updated to reference the current pull request because a previous pull request (#3117) is not closed.
Perhaps you should check that there is no duplicate work.
CC @dc-oerp

@rousseldenis
Copy link
Contributor

@LoisRForgeFlow Is this still applicable?

@LoisRForgeFlow
Copy link
Contributor

Hi @rousseldenis

Not sure about this one, probably @JordiMForgeFlow will know better as author.

@JordiMForgeFlow JordiMForgeFlow force-pushed the 15.0-mig-sale_validity_auto-cancel branch 2 times, most recently from 78d346a to 166c34b Compare December 10, 2024 11:21
@JordiMForgeFlow
Copy link
Contributor

@rousseldenis yes, it is ready. I think we could close #3117 in favor of this one

@rousseldenis
Copy link
Contributor

/ocabot migration sale_validity_auto_cancel

@@ -28,6 +28,6 @@ def cron_sale_validity_auto_cancel(self):
)
for order in orders:
try:
order.with_context(company_id=company.id)._action_cancel()
order.with_company(company.id)._action_cancel()
Copy link
Contributor

Choose a reason for hiding this comment

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

In fact, I'm not sure about the loop validity.

IMHO, you should search for sales with company of the current loop state.

Then, you should do for order in orders.with_company(company.id):

Copy link
Contributor

Choose a reason for hiding this comment

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

True, should be fixed now

Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

Code review

@JordiMForgeFlow JordiMForgeFlow force-pushed the 15.0-mig-sale_validity_auto-cancel branch 2 times, most recently from a2c90f2 to 23a558d Compare December 10, 2024 16:11
@rousseldenis
Copy link
Contributor

@JordiMForgeFlow Could you just fix the typo in commit message ?

image

@JordiMForgeFlow JordiMForgeFlow force-pushed the 15.0-mig-sale_validity_auto-cancel branch from 23a558d to bef6a26 Compare January 31, 2025 15:15
@JordiMForgeFlow
Copy link
Contributor

@rousseldenis done :)

@rousseldenis
Copy link
Contributor

We can go further.

/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-2335-by-rousseldenis-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 7e087b2 into OCA:15.0 Jan 31, 2025
11 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.

5 participants