details:   https://code.tryton.org/tryton/commit/1a961eae4f22
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Fri Jan 23 16:05:16 2026 +0100
description:
        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
        (grafted from 83b29b213d182c0dd9a5589f184eb5d26a57cbcf)
diffstat:

 modules/account/fiscalyear.py |  2 +-
 modules/account/period.py     |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 13f8817fe3ff -r 1a961eae4f22 modules/account/fiscalyear.py
--- a/modules/account/fiscalyear.py     Fri Jan 23 15:48:44 2026 +0100
+++ b/modules/account/fiscalyear.py     Fri Jan 23 16:05:16 2026 +0100
@@ -158,7 +158,7 @@
                         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 -r 13f8817fe3ff -r 1a961eae4f22 modules/account/period.py
--- a/modules/account/period.py Fri Jan 23 15:48:44 2026 +0100
+++ b/modules/account/period.py Fri Jan 23 16:05:16 2026 +0100
@@ -154,7 +154,7 @@
                         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,

Reply via email to