Skip to content

[19.0][MIG] base_tier_validation: Migration to 19.0#1253

Open
monthop-gmail wants to merge 279 commits intoOCA:19.0from
monthop-gmail:19.0-mig-base_tier_validation
Open

[19.0][MIG] base_tier_validation: Migration to 19.0#1253
monthop-gmail wants to merge 279 commits intoOCA:19.0from
monthop-gmail:19.0-mig-base_tier_validation

Conversation

@monthop-gmail
Copy link
Copy Markdown

Summary

  • Bump version to 19.0.1.0.0
  • Fix res.groups.usersuser_ids (field renamed in Odoo 19)
  • Remove string/expand attributes from <group> in search views (RelaxNG schema change)

🤖 Generated with Claude Code

LoisRForgeFlow and others added 30 commits March 16, 2026 15:30
* fix test after the last forward-ported feature.
* add a descrition of new know issue.
…tified. A customer or supplier can be a follower of the object and should not receive internal messages about the tier validation.
Currently translated at 100.0% (74 of 74 strings)

Translation: server-ux-13.0/server-ux-13.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-13-0/server-ux-13-0-base_tier_validation/zh_CN/
Currently translated at 80.0% (60 of 75 strings)

Translation: server-ux-13.0/server-ux-13.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-13-0/server-ux-13-0-base_tier_validation/es/
- When use approve by sequence, still approve tier of the same reviewer
- When using approve_sequence option in any tier.definition there can be inconsistencies in the systray notifications
Currently translated at 96.1% (73 of 76 strings)

Translation: server-ux-13.0/server-ux-13.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-13-0/server-ux-13-0-base_tier_validation/zh_CN/
This commit splits the state condition checking
part into another method, allowing inheriting
modules to override the conditions as needed.
OCA-git-bot and others added 18 commits March 16, 2026 15:30
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-ux-18.0/server-ux-18.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_tier_validation/
Currently translated at 100.0% (146 of 146 strings)

Translation: server-ux-18.0/server-ux-18.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_tier_validation/it/
Currently translated at 100.0% (146 of 146 strings)

Translation: server-ux-18.0/server-ux-18.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_tier_validation/tr/
Currently translated at 100.0% (146 of 146 strings)

Translation: server-ux-18.0/server-ux-18.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_tier_validation/it/
Currently translated at 100.0% (146 of 146 strings)

Translation: server-ux-18.0/server-ux-18.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-18-0/server-ux-18-0-base_tier_validation/it/
With the changes introduced in odoo/odoo@de056cc#diff-b37c7fd5520c97a29ddc59495779e7be61a66e15e85603928e27b3affb9dc31f, an error was occurring because the change validation on the model was being performed before tearDownClass was executed. Therefore, it has been modified so that the mock changes are applied in each test and cleaned up after each test. This way, the error will no longer appear and the test will run normally.
By ordering only by sequence, the order is not deterministic when there are
forwards, because the forwards are created with the same sequence as the
forwarded reviews.
… after forward

How to reproduce:

* Create two reviews for the same model with different sequences and `Approve by
sequence` enabled.
* Request validation on a record. Let the user of the first review forward the
first validation.

Desired result:

The new (forward) review is in state 'pending', and the remaining review is in
state 'waiting'.

Actual result:

Both the new (forward) review and the remaining review are in state 'pending'.

Suggested solution:

_compute_can_review has to be deferred during the fowarding process. It was
called explicitely afterwards already.
The `_get_tier_validation_readonly_domain` method returns
`bool(review_ids)` which is injected as a readonly domain modifier on
all form fields via `get_view()`. In Odoo 18, the web client does not
always include One2many fields like `review_ids` in the data spec during
form re-renders (e.g. after a status change or button click), causing an
OWL rendering error:

    Name 'review_ids' is not defined

Replace the domain with `validation_status not in ('no', False)` which
uses the stored computed `validation_status` Selection field instead.
This field is always available in the form data spec and provides the
same semantics: fields become readonly when a validation process is
active (pending, approved, or rejected).
@monthop-gmail monthop-gmail force-pushed the 19.0-mig-base_tier_validation branch 5 times, most recently from c73985a to 6c9f0bc Compare March 16, 2026 10:10
@monthop-gmail monthop-gmail force-pushed the 19.0-mig-base_tier_validation branch 2 times, most recently from c5aff88 to 8c86494 Compare March 16, 2026 12:14
Add tests targeting uncovered code paths:
- test_34: review display_status and reviewed_formated_date compute
- test_35: deprecated _search_validated/_search_rejected methods
- test_36: compute messages (validated/rejected/to_validate)
- test_37: unlink records with existing reviews
- test_38: tier.validation.exception constraint and compute
- test_39: review reminder flow with notification delay
- test_40: _compute_need_validation for unsaved NewId records

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@monthop-gmail monthop-gmail force-pushed the 19.0-mig-base_tier_validation branch from 8c86494 to 9fd1ffe Compare March 16, 2026 12:16
monthop-gmail added a commit to monthop-gmail/server-ux that referenced this pull request Mar 16, 2026
base_tier_validation_formula depends on base_tier_validation which
is not yet available for 19.0. Include it so CI tests can run.
This should be removed once base_tier_validation is merged (PR OCA#1253).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@BhaveshHeliconia
Copy link
Copy Markdown

@monthop-gmail from 19.0 onwards, tier-validation modules are in a separate repo: https://github.com/OCA/tier-validation.
Also, there is already an open PR for base_tier_validation: OCA/tier-validation#13.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.