diff --git a/move.py b/move.py index bfe47d463f..6246efdacc 100644 --- a/move.py +++ b/move.py @@ -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