Don't group payment lines that use structured communication

This commit is contained in:
Alexis de Lattre
2016-06-06 11:21:52 +02:00
committed by Enric Tobella
parent cf3ef65c9a
commit dd18c5f421

View File

@@ -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