312
311
def order_payments(self, cr, uid, ids, aml_ids, context=None):
313
312
""" orders the payments lines by partner id. Recive only one id"""
316
314
exp = self.browse(cr, uid, ids, context=context)
317
315
order_partner = list(set(
318
316
[(payment.partner_id.name, payment.partner_id.id, payment.id)