ir.sequence

Help with Python expressions

The expression you type here will be evaluated as the next number. The following variables can be used:

  • number: The next number of the sequence (integer)
  • number_padded: Padded string of the next number of the sequence
  • sequence: Odoo record of the sequence being used
  • uuid: The Python uuid module, eg. to use uuid.uuid4()
  • random: The Python random module, eg. to use random.randint(0, 9)
  • string: The Python string module, eg. to use random.choices(string.ascii_letters + string.digits, k=4)

Aside from this, you may use several builtin Python functions