mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Add support for using bank account as offsetting account in journal entry
This commit is contained in:
committed by
Enric Tobella
parent
9e1de8cdda
commit
87f9c419f8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user