server-tools/base_sequence_default/tests
Jairo Llopis 79d970432a
[REF] base_sequence_default: bump sequence only on creation
Before this patch, sequence was bumped when loading defaults. That happened even before creating the record. That rendered no-gap sequences useless.

Now, sequences are executed only on record creation, when the user didn't give a default value to the sequenced fields.

To support the use case when you want a sequence on required fields, you can set a value of `-` on those fields on creation. Then, the sequence will also kick in.

@moduon MT-2715
2023-11-22 13:32:58 +00:00
..
__init__.py [ADD] base_sequence_default: add default values with sequences 2023-11-22 13:32:58 +00:00
test_project_project.py [REF] base_sequence_default: bump sequence only on creation 2023-11-22 13:32:58 +00:00