Updated account_payment_clearing-set_party.diff
This commit is contained in:
parent
d906bf8fd7
commit
8dffe023f2
|
@ -1,13 +1,13 @@
|
||||||
# Change not accepted by Ced
|
# Change not accepted by Ced
|
||||||
diff -r 4dbfeeacd3c3 payment.py
|
diff -r 2d1b355b6b1c payment.py
|
||||||
--- a/trytond/trytond/modules/account_payment_clearing/payment.py Wed Apr 06 23:34:47 2016 +0200
|
--- 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 11:48:39 2016 +0200
|
+++ b/trytond/trytond/modules/account_payment_clearing/payment.py Tue Jun 28 12:05:18 2016 +0200
|
||||||
@@ -99,6 +99,8 @@
|
@@ -113,6 +113,8 @@
|
||||||
else:
|
if not local_currency:
|
||||||
counterpart.debit, counterpart.credit = self.amount, 0
|
counterpart.amount_second_currency = -self.amount
|
||||||
counterpart.account = self.journal.clearing_account
|
counterpart.second_currency = self.journal.currency
|
||||||
+ counterpart.party = (self.line.party
|
+ counterpart.party = (self.line.party
|
||||||
+ if self.journal.clearing_account.party_required else None)
|
+ if self.journal.clearing_account.party_required else None)
|
||||||
counterpart.amount_second_currency = self.line.amount_second_currency
|
|
||||||
counterpart.second_currency = self.line.second_currency
|
|
||||||
move.lines = (line, counterpart)
|
move.lines = (line, counterpart)
|
||||||
|
return move
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue