Set company to the grouping move

issue10415
review353521002
(grafted from 9ca8eb48bd783965ed3ac6fc57923d9282dcd3d6)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-05-16 17:50:48 +02:00
1 parent db30bc0e43
commit f953b650d5
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