Fill company on the waiting commission move

This commit is contained in:
Cédric Krier committed 2021-12-04 21:20:55 +01:00
1 parent 4141083005
commit 5feacdccef
1 file changed
+1 -1
+1 -1
View File
@@ -74,7 +74,7 @@ class Commission(metaclass=PoolMeta):
period = Period.find(self.agent.company.id, date=date)
move = Move(journal=self.get_journal(), origin=self,
date=date, period=period)
date=date, period=period, company=self.agent.company)
amount = Currency.compute(self.currency, self.amount,
self.agent.company.currency)
line = Line()