Set company to the grouping move

issue10415
review353521002
This commit is contained in:
Cédric Krier committed 2021-05-16 17:50:48 +02:00
1 parent 12c081fed9
commit 8eb8bfe84c
1 file changed
+3 -1
+3 -1
View File
@@ -2041,9 +2041,11 @@ class GroupLines(Wizard):
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