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][FIX] base_tier_validation: Do not update the counter if it is not possible to review it. #1038

Merged

Conversation

victoralmau
Copy link
Member

Do not update the counter if it is not possible to review it.

Example use case:

  • Create tier definition with Mitchell Admin as reviewer user.
  • Create a record (purchase.requisition for example) with Marc Demo and request a validation.
  • Do not update the counter in Marc Demo (because you cannot review it).

Before
antes-demo

After
despues-demo
despues-admin

Please @pedrobaeza and @sergio-teruel can you review it?

@Tecnativa TT55411

@OCA-git-bot
Copy link
Contributor

Hi @LoisRForgeFlow,
some modules you are maintaining are being modified, check this out!

Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

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

Makes sense, Thanks 👍

I assume this issue also happens in v17 and v18?

@pedrobaeza pedrobaeza added this to the 16.0 milestone Mar 10, 2025
@victoralmau victoralmau force-pushed the 16.0-fix-base_tier_validation-TT55411 branch from a885431 to e2a2e08 Compare March 10, 2025 13:12
@victoralmau victoralmau force-pushed the 16.0-fix-base_tier_validation-TT55411 branch 3 times, most recently from 9a14fda to f46d907 Compare March 11, 2025 08:39
…ssible to review it.

Change res_id field (tier.review) to Many2oneReference

Example use case:
- Create tier definition with Mitchell Admin as reviewer user.
- Create a record (purchase.requisition for example) with Marc Demo and request a validation.
- Do not update the counter in Marc Demo (because you cannot review it).

TT55411
@victoralmau victoralmau force-pushed the 16.0-fix-base_tier_validation-TT55411 branch from f46d907 to 9091c4f Compare March 11, 2025 16:36
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

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-1038-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b29efe1 into OCA:16.0 Mar 11, 2025
6 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 23afa58. 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