Sequence Preview (Odoo 15)
Real-time Preview for IR Sequence Configuration
This module enhances the Odoo Sequence (ir.sequence) management by adding a live preview field. Configure your sequences with confidence without having to create actual records or manually increment the sequence to see the result.
Key Features:
- Instant Preview: See how your sequence looks as you type Prefix, Suffix, or change Padding.
- Non-Destructive: The preview does NOT consume the next number in the database.
- Standard Variables Support: Supports all standard Odoo date/time variables (year, month, day, etc.).
- Custom Sequence Support: Automatically works with modules that override
_get_prefix_suffix, such as Roman Date Sequence.
How it works
A new field "Preview" is added to the ir.sequence form view. It uses a compute method that simulates the sequence formatting logic. It is especially useful when using complex date prefixes or when integrating with other custom sequence formatting modules.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 29 |
| Technical Name |
odoo_sequence_preview |
| License | AGPL-3 |
| Website | https://hamzbond.github.io |
Please log in to comment on this module