Repository navigation
[20.0][MIG] base_tier_validation: Migration to 20.0 - #94
Pani-k-folk wants to merge 290 commits into
Conversation
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/
…urchase modules installed
…er modules installed
- 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.
Currently translated at 87.3% (76 of 87 strings) Translation: server-ux-14.0/server-ux-14.0-base_tier_validation Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-base_tier_validation/es/
…ation has not yet started
…ications from requested tier validations TT29001
fdc7a73 to
3cffdb1
Compare
|
Hi @Pani-k-folk, thanks for starting the 20.0 migration! Heads-up: there's still a batch of 19.0 PRs for |
1f8382c to
eac2ae9
Compare
|
Two Owl 3 issues on Odoo 20 at commit eac2ae9 (base_tier_validation):
--- a/base_tier_validation/static/src/components/tier_review_menu/tier_review_menu.esm.js
+++ b/base_tier_validation/static/src/components/tier_review_menu/tier_review_menu.esm.js
@@ -8,7 +8,6 @@
export class TierReviewMenu extends Component {
static components = {Dropdown};
- static props = [];
static template = "base_tier_validation.TierReviewMenu";
--- a/base_tier_validation/static/src/components/tier_review_widget/tier_review_widget.esm.js
+++ b/base_tier_validation/static/src/components/tier_review_widget/tier_review_widget.esm.js
@@ -1,8 +1,11 @@
-import {Component, proxy} from "@odoo/owl";
+import {Component, proxy, useProps} from "@odoo/owl";
import {registry} from "@web/core/registry";
+import {standardFieldProps} from "@web/views/fields/standard_field_props";
import {useService} from "@web/core/utils/hooks";
export class ReviewsTable extends Component {
+ props = useProps(standardFieldProps);
+
setup() {With both changes the review table renders on purchase orders, transfers and manufacturing |
Assisted-by: Claude Opus 5.5
eac2ae9 to
b45d5fb
Compare
|
Thanks @bybc19 for the detailed report and the patch! While re-checking against current OCB, I also declared tierReviewCounter and tierReviewGroups as mail.store fields through a small Store patch, the same way core declares activityCounter. In Odoo 20 the store is no longer a reactive Proxy, so this keeps the systray badge reactive. It also gives tierReviewGroups a [] default, so opening the systray before the first fetch no longer crashes. Tested on current OCB 20.0 ( |
Changes
ir.model.accessandir.rulewere merged intoir.access. Converted tosecurity/ir.access.csv; the multi-company rules are now group-less restriction rows that keep their original xmlids.useState→proxy, and component variables in templates now usethis..oi+data-icon). A post-migration script updates the reminder activity type icon (fa-bell→notifications), because that record isnoupdate.BaseCommonnow runs as a plain internal user, so this module sets_test_user_groups = None. Test ACLs now useir.access.Query.subselect()only acceptsSQLarguments, and thereviewer_idssearch no longer builds!= [False].Assisted-by: Claude Opus 5.5 (migration changes were reviewed and tested by me)