changeset 9ca8eb48bd78 in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset&node=9ca8eb48bd78
description:
Set company to the grouping move
issue10415
review353521002
diffstat:
move.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 5a779e5a3c98 -r 9ca8eb48bd78 move.py
--- a/move.py Fri May 07 15:31:53 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