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 #990

Closed

Conversation

rjaraspearhead
Copy link

supersedes #966

This PR enhances the menu icon and the display of items pending approval.

@rjaraspearhead
Copy link
Author

@celm1990 and @bosd

#966 (comment)

Could you please help test the functionality now?

@bosd
Copy link
Contributor

bosd commented Jan 15, 2025

@rjaraspearhead Thanks, will review this one. Can you drop the merge commit?

Copy link
Contributor

@bosd bosd left a comment

Choose a reason for hiding this comment

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

Functional test ok, :+1 But commit history needs the merge commit removed.

Copy link

@miikanissi miikanissi left a comment

Choose a reason for hiding this comment

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

Functional test ok and code review looks good

Copy link
Contributor

@celm1990 celm1990 left a comment

Choose a reason for hiding this comment

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

Thank you for your efforts. I have attached a video demonstrating the visual issues we are observing. While the functionality is working as expected, we would appreciate it if you could review the UI.

V17
https://drive.google.com/file/d/11NkRgIxCA4rivFy_orHTK2lTBXDC5MbZ/view?usp=sharing

V18
https://drive.google.com/file/d/1FoB7xZe-syZBPlR6f6ciA296-w3g0Ymj/view?usp=sharing

Comment on lines +10 to +19
this.busService.subscribe("base.tier.validation/updated", (payload) => {
if (payload.review_created) {
this.store.tierReviewCounter++;
}
if (payload.review_deleted) {
this.store.tierReviewCounter--;
}
});
this.busService.start();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check this issue; real-time updates are not working. Please review the video where it works fine in V17.

Comment on lines 52 to 84
<t
t-if="review.status == 'waiting'"
t-set="status_class"
t-value="'text-muted'"
/>
<t
t-if="review.status == 'pending'"
t-set="status_class"
t-value=""
/>
<t
t-if="review.status == 'approved'"
t-set="status_class"
t-value="'alert-success'"
/>
<t
t-if="review.status == 'rejected'"
t-set="status_class"
t-value="'alert-danger'"
/>
<tr t-att-class="status_class">
Copy link
Contributor

Choose a reason for hiding this comment

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

These styles aren't applied correctly; please take a look.

LoisRForgeFlow and others added 22 commits January 16, 2025 08:12
* 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
…reviews' name and state correctly translated.
* using similar approach to activities has already benn addressed.
* add a new point explaining review tooltip improvement possibilities.
weblate and others added 27 commits January 16, 2025 08:12
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
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()
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
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/
@rjaraspearhead rjaraspearhead force-pushed the 18.0-mig-base_tier_validation branch from f43070d to 16735b3 Compare January 16, 2025 16:21
@rjaraspearhead
Copy link
Author

I am canceling this PR because it is being worked on in
#992

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.