OdooWiki OCA HUB

Reset Sequences on selected period ranges

sequence_reset_period folder_open OCA/server-ux open_in_new
Reporting License: LGPL-3

This module was written to reset the sequences on the specified times, because by default they are reset yearly.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets you choose how often a sequence's numbering period resets — daily, weekly, monthly or yearly — instead of only yearly. The reset period is set on each sequence and used automatically when new number ranges are created.

By default Odoo sequences that use date ranges only reset once a year. This module adds a new option on the sequence form so you can pick a shorter reset period.

Where it appears: - On the sequence screen (Settings area, ir.sequence), a new "range_reset" field appears right after the "use_date_range" option. It is only visible when date ranges are enabled. - The available choices are Daily, Weekly, Monthly and Yearly.

What it changes: - When a new date range is needed for a sequence, the module calculates the start and end dates according to the chosen period: weeks run Monday to Sunday, months run from the 1st to the last day, and years run from 1 January to 31 December. - It checks existing date ranges of the same sequence to avoid overlaps, adjusting the new range's start or end date so it fits next to the ranges already defined. - If no reset period is selected, the standard Odoo behaviour is kept unchanged.

This affects the ir.sequence model and its date ranges (ir.sequence.date_range). It is useful when you want document numbers to restart every day, week or month rather than only once a year.

Depends on

base
Models and fields (1)
  • ir.sequence · extends an existing modelrange_reset

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 8 confirmed, 1 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/server-ux.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Access sequences and configurate the model to use.
  • When sequence is computed, date_range will follow the specified rules

No verified information in OCA: Installation, Configuration.

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.