server-tools/base_sequence_default/readme/CONFIGURE.md

23 lines
1.1 KiB
Markdown

To configure this module, you need to:
1. Enable developer mode.
2. Go to the form view of the model to which you want to add the new
sequential default value.
3. Hover over the field to which you want to add the sequential default
value. A tooltip with more info will appear.
4. Make sure the tooltip says *Type: char*. Only those fields will
work.
5. Take note of the *Object* and *Field*.
6. Go to *Settings \> Technical \> Sequences & Identifiers \>
Sequences*.
7. Create one sequence with code named after this pattern:
`base_sequence_default.{object}.fields.{field}`. E.g.:
`base_sequence_default.res.partner.fields.name` to add a default sequenced
name for new partners. Do not use `{}` when adding the model and field name
to the pattern.
![Setting the sequence code properly](https://github.com/OCA/server-tools/assets/147538094/ebf4be69-85d4-4c28-a3ec-bbe930fd53cf)
8. Configure the sequence at will.
![Configuring a sequence to have date range sub-sequences](https://github.com/OCA/server-tools/assets/147538094/e3eb311b-738f-4fce-9af5-a1b592908704)