Use payment company as clearing move company

issue9736
review328501002
This commit is contained in:
Sergi Almacellas Abellana committed 2020-10-20 12:55:16 +02:00
1 parent f5218eaad2
commit fcc3a7d7e7
1 file changed
+1 -1
+1 -1
View File
@@ -217,7 +217,7 @@ class Payment(metaclass=PoolMeta):
local_amount = self.amount
move = Move(journal=self.journal.clearing_journal, origin=self,
date=date, period=period)
date=date, period=period, company=self.company)
line = Line()
if self.kind == 'payable':
line.debit, line.credit = local_amount, 0