details:   https://code.tryton.org/tryton/commit/8d7885dd4874
branch:    7.6
user:      Cédric Krier <[email protected]>
date:      Fri Jan 23 15:48:44 2026 +0100
description:
        Copy company when migrating move sequence of fiscal year and period to 
strict

        Closes #14545
        (grafted from bd00287303c66840497d0fa6a8ed051a30c08696)
diffstat:

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

diffs (26 lines):

diff -r 171c890bd23e -r 8d7885dd4874 modules/account/fiscalyear.py
--- a/modules/account/fiscalyear.py     Fri Jan 23 09:57:31 2026 +0100
+++ b/modules/account/fiscalyear.py     Fri Jan 23 15:48:44 2026 +0100
@@ -161,7 +161,8 @@
                         padding=sequence.padding,
                         timestamp_rounding=sequence.timestamp_rounding,
                         timestamp_offset=sequence.timestamp_offset,
-                        last_timestamp=sequence.last_timestamp)
+                        last_timestamp=sequence.last_timestamp,
+                        company=sequence.company)
                     new_sequence.save()
                     old2new[sequence_id] = new_sequence.id
 
diff -r 171c890bd23e -r 8d7885dd4874 modules/account/period.py
--- a/modules/account/period.py Fri Jan 23 09:57:31 2026 +0100
+++ b/modules/account/period.py Fri Jan 23 15:48:44 2026 +0100
@@ -157,7 +157,8 @@
                         padding=sequence.padding,
                         timestamp_rounding=sequence.timestamp_rounding,
                         timestamp_offset=sequence.timestamp_offset,
-                        last_timestamp=sequence.last_timestamp)
+                        last_timestamp=sequence.last_timestamp,
+                        company=sequence.company)
                     new_sequence.save()
                     old2new[sequence_id] = new_sequence.id
 

Reply via email to