From aee7fa10fdeb4e4ad6eca227d04106191e8c2df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 23 Jan 2026 16:05:16 +0100 Subject: [PATCH] Update number next instead of internal when migrate move's sequence to strict The number next has a default value which override the internal value when the setter is called. Closes #14545 --- modules/account/fiscalyear.py | 2 +- modules/account/period.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/account/fiscalyear.py b/modules/account/fiscalyear.py index 4042497481..4c1b915f5d 100644 --- a/modules/account/fiscalyear.py +++ b/modules/account/fiscalyear.py @@ -158,7 +158,7 @@ class FiscalYear(Workflow, ModelSQL, ModelView): prefix=sequence.prefix, suffix=sequence.suffix, type=sequence.type, - number_next_internal=sequence.number_next_internal, + number_next=sequence.number_next, number_increment=sequence.number_increment, padding=sequence.padding, timestamp_rounding=sequence.timestamp_rounding, diff --git a/modules/account/period.py b/modules/account/period.py index 42bb245923..9d327202f2 100644 --- a/modules/account/period.py +++ b/modules/account/period.py @@ -154,7 +154,7 @@ class Period(Workflow, ModelSQL, ModelView): prefix=sequence.prefix, suffix=sequence.suffix, type=sequence.type, - number_next_internal=sequence.number_next_internal, + number_next=sequence.number_next, number_increment=sequence.number_increment, padding=sequence.padding, timestamp_rounding=sequence.timestamp_rounding,