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_delivery_state #1851

Merged
merged 21 commits into from
Jan 13, 2022

Conversation

celm1990
Copy link
Sponsor Contributor

@celm1990 celm1990 commented Jan 5, 2022

No description provided.

@celm1990
Copy link
Sponsor Contributor Author

somebody can help me review this PR?
ping @OCA/oca-members @OCA/crm-sales-marketing-maintainers

sale_delivery_state/__manifest__.py Outdated Show resolved Hide resolved
@simahawk
Copy link
Contributor

/ocabot migration sale_delivery_state

@OCA-git-bot OCA-git-bot added this to the 15.0 milestone Jan 13, 2022
order.delivery_state = "no"
elif order.force_delivery_state or order._all_qty_delivered():
order.delivery_state = "done"
elif order._partially_delivered():
Copy link
Contributor

Choose a reason for hiding this comment

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

Checking in the same loop would be more efficient than filtering, getting precision and going through the lines for both the _all_qty_delivered method and the _partially_delivered method, but I suppose it will be because it is necessary to extend these methods in some case ...

@simahawk
Copy link
Contributor

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

@OCA-git-bot OCA-git-bot merged commit 7c66381 into OCA:15.0 Jan 13, 2022
@OCA-git-bot
Copy link
Contributor

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

@celm1990 celm1990 deleted the 15.0-mig-sale_delivery_state branch January 13, 2022 12:52
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

10 participants