Skip to content

[19.0][ADD] partner_ tier_validation#49

Open
glitchov wants to merge 26 commits into
OCA:19.0from
acsone:19.0-add-partner_tier_validation-hda
Open

[19.0][ADD] partner_ tier_validation#49
glitchov wants to merge 26 commits into
OCA:19.0from
acsone:19.0-add-partner_tier_validation-hda

Conversation

@glitchov
Copy link
Copy Markdown

Add/Migration from partner-contact/partner_tier_validation 18.0

dreispt and others added 26 commits May 20, 2026 09:04
- Added new optional tier definition for is_company = true.
- Added auto active if no validation needed during create.
- Added reset validation during write for specific fields.

[FIX] Code White Space Formatting

[IMP] Reviewer Suggestions

[IMP] Added Tests
Having this rule activated by default in tests environments makes other tests to fail due to the additional constraint not expected by them, so what we are doing is:

- Having the rule deactivated by default.
- On a post-init hook, we activate it only if we are not in a test environment.
- On own modules tests, we activate it as well

TT30292
This prevents a scenario where a user can bypass validation by moving the partner to a 'cancel' stage and then moving it back to confirmed.
Currently translated at 100.0% (17 of 17 strings)

Translation: partner-contact-18.0/partner-contact-18.0-partner_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-partner_tier_validation/it/
@OCA-git-bot OCA-git-bot added mod:partner_tier_validation Module partner_tier_validation series:19.0 labels May 20, 2026
@glitchov glitchov changed the title [19.0][ADD] partne_ tier_validation [19.0][ADD] partner_ tier_validation May 20, 2026
Copy link
Copy Markdown
Member

@FrancoMaxime FrancoMaxime left a comment

Choose a reason for hiding this comment

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

LGTM: code review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:partner_tier_validation Module partner_tier_validation series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.