Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Sequence from Python expression

Entity: ir.sequence

Compute Method: _compute_python_code_preview

Inputs Method Outputs
  • number_next_actual
for this in self:
            try:
                this.python_code_preview = self.get_next_char(
                    (self.number_next_actual,)
                )
            except Exception as e:  # noqa
                this.python_code_preview = str(e)

Back to entity