changeset aa27606b9493 in modules/account:5.8
details: https://hg.tryton.org/modules/account?cmd=changeset&node=aa27606b9493
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 0cb5f2f0a53a -r aa27606b9493 move.py
--- a/move.py Sat May 15 23:10:10 2021 +0200
+++ b/move.py Sun May 16 17:50:48 2021 +0200
@@ -1955,9 +1955,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