mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Don't group payment lines that use structured communication
This commit is contained in:
committed by
Enric Tobella
parent
cf3ef65c9a
commit
dd18c5f421
@@ -89,8 +89,11 @@ class AccountPaymentLine(models.Model):
|
||||
# Don't group the payment lines that are attached to the same supplier
|
||||
# but to move lines with different accounts (very unlikely),
|
||||
# for easier generation/comprehension of the transfer move
|
||||
# TODO Alexis : but this is for ????
|
||||
values.append(unicode(self.move_line_id.account_id or False))
|
||||
# Don't group the payment lines that use a structured communication
|
||||
# otherwise it would break the structured communication system !
|
||||
if self.communication_type != 'normal':
|
||||
values.append(unicode(self.id))
|
||||
hashcode = '-'.join(values)
|
||||
return hashcode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user