trytond-patches/account_payment_clearing-se...

14 lines
617 B
Diff

# Change not accepted by Ced
diff -r 2d1b355b6b1c payment.py
--- a/trytond/trytond/modules/account_payment_clearing/payment.py Sun Jun 12 15:22:14 2016 +0200
+++ b/trytond/trytond/modules/account_payment_clearing/payment.py Tue Jun 28 12:05:18 2016 +0200
@@ -113,6 +113,8 @@
if not local_currency:
counterpart.amount_second_currency = -self.amount
counterpart.second_currency = self.journal.currency
+ counterpart.party = (self.line.party
+ if self.journal.clearing_account.party_required else None)
move.lines = (line, counterpart)
return move