Skip to content

[19.0][MIG] sale_tier_validation #9

Open
alan196 wants to merge 48 commits into
OCA:19.0from
Jarsa-dev:19.0-mig-sale_tier_validation
Open

[19.0][MIG] sale_tier_validation #9
alan196 wants to merge 48 commits into
OCA:19.0from
Jarsa-dev:19.0-mig-sale_tier_validation

Conversation

@alan196

@alan196 alan196 commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

osi-mgosai and others added 30 commits February 10, 2026 08:52
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_tier_validation/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_tier_validation/
Currently translated at 100.0% (13 of 13 strings)

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_tier_validation/zh_CN/
Currently translated at 100.0% (13 of 13 strings)

Translation: sale-workflow-13.0/sale-workflow-13.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-13-0/sale-workflow-13-0-sale_tier_validation/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_tier_validation/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_tier_validation/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_tier_validation/
Currently translated at 100.0% (19 of 19 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_tier_validation/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_tier_validation/
Currently translated at 100.0% (20 of 20 strings)

Translation: sale-workflow-16.0/sale-workflow-16.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-16-0/sale-workflow-16-0-sale_tier_validation/es/
celm1990 and others added 18 commits February 10, 2026 08:52
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_tier_validation/
Currently translated at 100.0% (22 of 22 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_tier_validation/es/
Currently translated at 100.0% (22 of 22 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_tier_validation/it/
Currently translated at 100.0% (22 of 22 strings)

Translation: sale-workflow-17.0/sale-workflow-17.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_tier_validation/sv/
Currently translated at 100.0% (28 of 28 strings)

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_tier_validation/nl/
Currently translated at 100.0% (28 of 28 strings)

Translation: sale-workflow-18.0/sale-workflow-18.0-sale_tier_validation
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_tier_validation/ja/
@bosd

bosd commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

@alan196 Thanks for the work.
Can you please add a test-requirements.txt ?

odoo-addon-base_tier_validation @ git+https://github.com/OCA/tier-validation@refs/pull/1/head#subdirectory=base_tier_validation

So it depends on: #1

Can you apply the changes from the other pr OCA/sale-workflow@8f68ae7#diff-39d65b4f67c6dd0ae59a6ac23b4f6551fc150996b6e0fa2410e37c840056a7b8

Please squash the administrative commits

@OpenCode

Copy link
Copy Markdown
Contributor

@alan196 Thanks for the work. Can you please add a test-requirements.txt ?

odoo-addon-base_tier_validation @ git+https://github.com/OCA/tier-validation@refs/pull/1/head#subdirectory=base_tier_validation

So it depends on: #1

Can you apply the changes from the other pr OCA/sale-workflow@8f68ae7#diff-39d65b4f67c6dd0ae59a6ac23b4f6551fc150996b6e0fa2410e37c840056a7b8

Please squash the administrative commits

PR #1 is closed. Now you can use #13

@bosd

bosd commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

@alan196 Can you please update this pr?

@bosd

bosd commented May 12, 2026

Copy link
Copy Markdown
Contributor

Heads-up: filter domain breaks registry load on Odoo 19

Running -i sale_tier_validation on a 19.0 instance crashes at view load with:

odoo.tools.convert.ParseError: while parsing sale_tier_validation/views/sale_order_view.xml:5
Error while validating view near:

  <search string="Search Sales Order">
  …

Unknown field "sale.order.validated" in domain of <filter name="tier_validated"> ([('validated', '=', True)])

Cause

base_tier_validation 19.0 still exposes validated as a non-stored compute Boolean with search=_search_validated:

# TODO: Delete in v19 in favor of validation_status field
validated = fields.Boolean(
    compute="_compute_validated_rejected", search="_search_validated"
)

Odoo 19's view validator no longer accepts that pattern in a search-view domain when the field comes in via an AbstractModel _inherit. The view dies before the install can complete, so the whole registry init fails.

Suggested fix

Swap the filter to the stored validation_status Selection field (already defined in base_tier_validation, value 'validated' is the same end-state):

<filter
    name="tier_validated"
    string="Validated"
    domain="[('validation_status', '=', 'validated')]"
    help="SOs validated and ready to be confirmed"
/>

This matches the base_tier_validation TODO note that validated is being phased out in favor of validation_status in v19. One-line view change, no model changes needed; tested on a real 19.0 install (where the unpatched filter reproduces the crash above and the patched one loads cleanly).

@Yusuke1998

Copy link
Copy Markdown
Contributor

@alan196 Hi, some modules have already been migrated, so you might not need a test-requirements document. Could you check it? I think this pull request won't be approved until you have at least a test and runboat application running.

@bosd

bosd commented May 14, 2026

Copy link
Copy Markdown
Contributor

this pull request won't be approved until you have at least a test and runboat a

@alan196 A simple rebase will likely turn tests green. 🤞
Can you try it?

@OpenCode

Copy link
Copy Markdown
Contributor

@alan196 Can you rebase and push so the CI/CD can run again?

@bosd

bosd commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

@OpenCode
Maybe @alan196 is no longer active?

@kirca

kirca commented Jul 7, 2026

Copy link
Copy Markdown

I created a new PR #55 because this one was stale

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.