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

[16.0][IMP]sale_cancel_reason: set reason to false when status is != cancel #2490

Merged
merged 1 commit into from
Apr 20, 2023

Conversation

hugo-cordoba
Copy link
Contributor

@hugo-cordoba hugo-cordoba commented Apr 20, 2023

I have find the following problem:

When a cancelled order, is moved to draft, it keeps the cancellation reason and this causes that if we group orders by cancellation reasons:

Captura de pantalla de 2023-04-20 17-32-16

we will get orders that are not cancelled, but were once cancelled.

With that change on action_draft, when we move the order to draft, again, the reason for cancellation will be reset.

Copy link

@flalexg flalexg left a comment

Choose a reason for hiding this comment

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

Good change! LGTM!

@hugo-cordoba
Copy link
Contributor Author

Good afternoon @pedrobaeza, I saw this change at the last minute that I had missed, what do you think of the improvement?

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-2490-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 79c0c3d into OCA:16.0 Apr 20, 2023
@OCA-git-bot
Copy link
Contributor

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

@hugo-cordoba hugo-cordoba deleted the 16.0-upd-sale_cancel_reason branch April 20, 2023 21:26
@hugo-cordoba
Copy link
Contributor Author

Thanks @pedrobaeza!

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

5 participants