changeset 6b8625cdd4c3 in modules/account:6.0
details: https://hg.tryton.org/modules/account?cmd=changeset&node=6b8625cdd4c3
description:
Set company to the grouping move
issue10415
review353521002
(grafted from 9ca8eb48bd783965ed3ac6fc57923d9282dcd3d6)
diffstat:
move.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 9f78e590de4b -r 6b8625cdd4c3 move.py
--- a/move.py Mon May 03 15:39:58 2021 +0200
+++ b/move.py Sun May 16 17:50:48 2021 +0200
@@ -2041,9 +2041,11 @@
if not date:
date = Date.today()
- period = Period.find(grouping['company'].id, date=date)
+ company = grouping['company']
+ period = Period.find(company.id, date=date)
move = Move()
+ move.company = company
move.date = date
move.period = period
move.journal = journal