Skip to content

Commit 24f6e6f

Browse files
[FIX] endpoint_route_handler: precompute=True on route field
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.
1 parent 1d01e8d commit 24f6e6f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

endpoint_route_handler/models/endpoint_route_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class EndpointRouteHandler(models.AbstractModel):
2222
index=True,
2323
compute="_compute_route",
2424
inverse="_inverse_route",
25+
precompute=True,
2526
readonly=False,
2627
store=True,
2728
copy=False,

0 commit comments

Comments
 (0)