details:   https://code.tryton.org/tryton/commit/13f8817fe3ff
branch:    7.8
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 be2999489bb5 -r 13f8817fe3ff 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
@@ -163,7 +163,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 be2999489bb5 -r 13f8817fe3ff 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
@@ -159,7 +159,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