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

Module: Thai Localization - Base Sequence

Entity: ir.sequence.date_range

Compute Method: _compute_preview

Inputs Method Outputs
  • date_from
  • date_to
  • number_next_actual
for record in self:
            record.preview = record.with_context(
                ir_sequence_date_range=record.date_from,
                ir_sequence_date_range_end=record.date_to,
            ).sequence_id.get_next_char(record.number_next_actual)

Back to entity