Add support for using bank account as offsetting account in journal entry

This commit is contained in:
Alexis de Lattre
2016-05-11 22:48:48 +02:00
committed by Enric Tobella
parent 9e1de8cdda
commit 87f9c419f8

View File

@@ -9,7 +9,7 @@ class BankPaymentLine(models.Model):
_inherit = 'bank.payment.line'
@api.multi
def move_line_transfer_account_hashcode(self):
def move_line_offsetting_account_hashcode(self):
"""
From my experience, even when you ask several direct debits
at the same date with enough delay, you will have several credits
@@ -18,6 +18,6 @@ class BankPaymentLine(models.Model):
reconciliation of the bank statement.
"""
hashcode = super(BankPaymentLine, self).\
move_line_transfer_account_hashcode()
move_line_offsetting_account_hashcode()
hashcode += '-' + unicode(self.mandate_id.recurrent_sequence_type)
return hashcode