Commit Graph

13 Commits (66007cf72e3e256e7b17695000d878616a8f4b54)

Author SHA1 Message Date
OCA-git-bot d650568e45 [BOT] post-merge updates 2023-12-09 15:30:33 +00:00
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
OCA-git-bot 590cf43c30 [BOT] post-merge updates 2023-11-28 11:09:31 +00:00
oca-ci 6d52fc07ea [UPD] Update base_sequence_default.pot 2023-11-28 11:03:18 +00:00
Jairo Llopis ceca6029f5
[MIG] base_sequence_default: v16
@moduon MT-4324
2023-11-27 09:47:32 +00:00
Jairo Llopis 640b10a3d1
[DOCS] Convert readme fragments to markdown 2023-11-22 13:56:13 +00:00
OCA-git-bot 7bcc852f44
[UPD] README.rst 2023-11-22 13:32:58 +00:00
OCA-git-bot f95d8e6e8a
base_sequence_default 14.0.1.0.0 2023-11-22 13:32:58 +00:00
OCA-git-bot 33d832b8e5
[UPD] README.rst 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
OCA-git-bot 53452c8702
[UPD] README.rst 2023-11-22 13:32:58 +00:00
oca-ci 28dfb869e4
[UPD] Update base_sequence_default.pot 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