OdooWiki OCA HUB

Sequence Preview

l10n_th_sequence_preview folder_open OCA/l10n-thailand open_in_new
Localization License: AGPL-3

This module extends the ir.sequence adding preview fields on both ir.sequence and ir.sequence.date_range models. the preview field is a computed fields that only visible in edit-mode of the form view. It helps users to check and validate the prefix, suffix, and padding configuration easily without a need to actually generate an actual document.

This module works with range_ and range_end_.

auto_awesome What this module does

AI-generated from the code · Odoo 14.0

Adds a live "Preview" field to sequence configuration screens so users can see the next number that would be generated without creating a real document.

This module makes it easier to set up and check numbering rules in Odoo. On the sequence form, a new read-only "Preview" field appears right after the "Next Number" field. It is only shown while editing, and it is hidden when the sequence uses date ranges.

For sequences that use date ranges, the same "Preview" column is added to the list of date ranges inside the sequence form. Each row shows the next number that would be produced for that specific date range.

The preview updates automatically as soon as you change the prefix, suffix, padding, next number, implementation type, or the start and end dates of a date range. It uses the same numbering logic as real documents, so what you see is what the next generated document number will look like.

Behind the scenes, the module extends the sequence and sequence date range models and adjusts how the next number is predicted for unsaved (new) date range lines, so the preview also works before you save. No new menus or reports are added; the change is visible only inside the existing sequence configuration screen.

Models and fields (2)
  • ir.sequence · extends an existing modelpreview (Preview)
  • ir.sequence.date_range · extends an existing modelpreview (Preview)

Text generated by AI (DeepSeek) from reading the Odoo 14.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 14.0

Confirmed on 2026-11-03 in branch 14.0 of OCA/l10n-thailand.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.