Commit Graph

4 Commits (1ac17c7b5ac7919f3288389933498a7d1bf72b08)

Author SHA1 Message Date
Jairo Llopis ceca6029f5
[MIG] base_sequence_default: v16
@moduon MT-4324
2023-11-27 09:47:32 +00:00
OCA-git-bot f95d8e6e8a
base_sequence_default 14.0.1.0.0 2023-11-22 13:32:58 +00:00
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
Jairo Llopis 4020460798
[ADD] base_sequence_default: add default values with sequences
This module extends the defaults functionality to allow filling *Character*
type fields on creation with a predefined sequence.

@moduon MT-1506

Co-authored-by: Eduardo de Miguel <1162050+Shide@users.noreply.github.com>
2023-11-22 13:32:58 +00:00