Please sign in to comment.
[FIX] models: postpone sql constraints after module initialisation
Make sure SQL constraints can apply on compute store fields, even for modules extensions. SQL constraints can apply after module creation for new models, because the new model table is empty (no row to invalidate the constraints). But for extended models, we have to apply SQL constraints (and required) after compute store computation, otherwise the constraint may not be applicable to current records because the compute stored columns are empty (not already computed).
- Loading branch information