Skip to content

[19.0][FIX] endpoint_route_handler: precompute=True on route field - #136

Merged
OCA-git-bot merged 1 commit into
OCA:19.0from
qrtl:19.0-fix-endpoint_route_handler
Sep 16, 2026
Merged

OCA-git-bot merged 1 commit into
OCA:19.0from
qrtl:19.0-fix-endpoint_route_handler

Conversation

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor

Related: #135

Without precompute, the required computed field is evaluated after INSERT (during flush), so creating an endpoint whose route is derived from other fields by a downstream module fails with "Missing required value for the field 'Route'" — the INSERT runs before the compute can populate the column.

@qrtl QT6769

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @simahawk,
some modules you are maintaining are being modified, check this out!

@OCA-git-bot OCA-git-bot added series:19.0 mod:endpoint_route_handler Module endpoint_route_handler labels May 26, 2026
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the 19.0-fix-endpoint_route_handler branch from b81ed4d to 1d55f71 Compare May 26, 2026 04:53

@yostashiro yostashiro left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code review. LGTM.

@smorita7749 smorita7749 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Functional review: LGTM
The error is fixed.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Comment thread endpoint_route_handler/tests/test_endpoint.py
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the 19.0-fix-endpoint_route_handler branch from 1d55f71 to fb83e40 Compare July 22, 2026 10:04
@AungKoKoLin1997
AungKoKoLin1997 requested a review from simahawk July 22, 2026 10:05

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@AungKoKoLin1997 can you backport to v18 pls?

@AungKoKoLin1997

Copy link
Copy Markdown
Contributor Author

can you backport to v18 pls?

@simahawk Done!
#165

Without precompute, the required computed field is evaluated after
INSERT (during flush), so creating an endpoint whose route is derived
from other fields by a downstream module fails with "Missing required
value for the field 'Route'" — the INSERT runs before the compute can
populate the column.
@AungKoKoLin1997
AungKoKoLin1997 force-pushed the 19.0-fix-endpoint_route_handler branch from fb83e40 to ecba2c0 Compare September 16, 2026 02:56
@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-136-by-simahawk-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 8b04ccf into OCA:19.0 Sep 16, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at dfb4f9c. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants