Commit Graph

4 Commits (5217da79395a94cb35364e8a1cd85f1dddb9b450)

Author SHA1 Message Date
Jairo Llopis c48052b309
[IMP] base_sequence_default: better readme
Fixes https://github.com/OCA/server-tools/issues/2769

@moduon MT-4324

Co-authored-by: Gelo Joga <147538094+Gelojr@users.noreply.github.com>
2023-11-29 09:19:42 +00:00
Jairo Llopis 640b10a3d1
[DOCS] Convert readme fragments to markdown 2023-11-22 13:56:13 +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