Skip to content

Conversation

@Camille0907
Copy link

@Camille0907 Camille0907 commented Feb 5, 2026

If the state field on which the substate is based is computed, its update does not goes through write or create methods. In that cas we need to take care of the substate in _compute_field_value.

As an example, you can check stock_picking_batch_substate: the batch state is computed in some cases (all picking set to done or cancel).

Unit tests have been adapted to check this case.

@Camille0907 Camille0907 force-pushed the 19.0-imp-base_substate branch from 4f17b6f to 6f2f147 Compare February 6, 2026 10:09
If the state field on which the substate is based is computed, its update does not goes through `write` or `create` methods.
In that cas we need to take care of the substate in ``_compute_field_value``.

As an example, you can check [batch_substate](OCA/stock-logistics-workflow#2244): the batch state is computed in some cases (all picking set to done or cancel).

Unit tests have been adapted to check this case.
@Camille0907 Camille0907 force-pushed the 19.0-imp-base_substate branch from 6f2f147 to 98d9bd2 Compare February 6, 2026 13:58
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.

2 participants