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

[18.0][MIG] base_tier_validation: Migration to 18.0 #1

Open
wants to merge 218 commits into
base: 18.0
Choose a base branch
from

Conversation

xaviedoanhduy
Copy link
Owner

@xaviedoanhduy xaviedoanhduy commented Jan 9, 2025

take over PR: OCA#966

changes are follow up from old PR:

  • fix the icon on systray
  • fix of not recalculating reviewCount when updating review requests (TierReviewService). don't use useState to calculate tierReviewCounter because the service will update services["mail.store"]
  • replaced old-style string interpolation with f-string and placeholder formatting
  • remove old jquery and replace with javascript available objects
  • optimize multi-company rule
  • replace deprecated output directives (t-esc)

@xaviedoanhduy xaviedoanhduy force-pushed the 18.0-mig-base_tier_validation branch 3 times, most recently from 0a8050b to bc507f3 Compare January 14, 2025 02:48
@rjaraspearhead
Copy link

@xaviedoanhduy
Could this PR be directed to the 18.0 branch of OCA?

Your changes are better, and I could cancel my PR since we were both working on the same migration.

OCA#990

@xaviedoanhduy
Copy link
Owner Author

xaviedoanhduy commented Jan 16, 2025

@xaviedoanhduy Could this PR be directed to the 18.0 branch of OCA?

Your changes are better, and I could cancel my PR since we were both working on the same migration.

OCA#990

hi @rjaraspearhead, I have created PR on OCA side (https://github.com/OCA/server-ux/pull/992), thank you for following up.

@xaviedoanhduy xaviedoanhduy force-pushed the 18.0-mig-base_tier_validation branch 2 times, most recently from 3108668 to 60977bf Compare January 21, 2025 01:13
@xaviedoanhduy xaviedoanhduy force-pushed the 18.0-mig-base_tier_validation branch from 60977bf to 9aedf95 Compare January 23, 2025 09:42
LoisRForgeFlow and others added 17 commits January 23, 2025 16:42
* able to restart validation
* sudo() not needed anymore
and reject can be hidden according to this computed field.
… and who asks for reviews in new fields 'done_by' and 'requested_by'.
fixup and extend tests

[ADD] systray icon for pending reviews

[FIX] Remove python safe_eval

[ADD] base_tier_validation_formula and migration scripts

[ADD] widget domain and python expression to define reviewer in tier definition

[ADD] auto updating of systray icon counter

[ADD] validation date field

[ADD] review widget dropdown menu
Shide and others added 29 commits January 23, 2025 16:42
Silence the warning: Two fields (model_name, model_id) of tier.validation.exception() have the same label: Model. [Modules: base_tier_validation and base_tier_validation]
Currently translated at 100.0% (143 of 143 strings)

Translation: server-ux-17.0/server-ux-17.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-17-0/server-ux-17-0-base_tier_validation/it/
Previous implementation was losing fields in some cases; new one
properly merges dicts/tuples.

This fixes odd "Missing field string information" errors in
form-embedded lists.

This cset also removes an obsolete `base_model_name` context key no
longer used in Odoo 16.

This cset adds a `test_get_view` test which checks for that
`need_validation` field; it was failing with the previous impl.

Fixes OCA#825.
Computed fields bypass `write`, so we need to override `_write` for that case.
Also, the current value before the update needs to be fetched from the database
because the new value is already set in the cache.
I just realized that a new author was added to the module during an
improvement that merged the functionality of base_tier_validation_waiting.
This was overlook during my review and not explicitly accepted. There
have been many contributors adding new functionalities and this one
was not specially big to be included as author.
TierReview status "waiting" has been added and is the default. Modified the
tier review reminder search domain to accommodate
invalidate_cache() replaced with invalidate_recordset()
Currently translated at 100.0% (150 of 150 strings)

Translation: server-ux-17.0/server-ux-17.0-base_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/server-ux-17-0/server-ux-17-0-base_tier_validation/it/
@xaviedoanhduy xaviedoanhduy force-pushed the 18.0-mig-base_tier_validation branch from 9aedf95 to e7545d3 Compare January 23, 2025 09:42
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.