details: https://code.tryton.org/tryton/commit/bd00287303c6
branch: default
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
diffstat:
modules/account/fiscalyear.py | 3 ++-
modules/account/period.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 4a30450c54bd -r bd00287303c6 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 4a30450c54bd -r bd00287303c6 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