[FIX] payment: post accounting-pocalypse aftermath

Some leftovers of https://github.com/odoo/odoo/commit/beaa30a3d1843de43a45f419bfbc1bfa7613a920.

Invoice's number is now account move's name.
This commit is contained in:
Johan Demaret Rivarola
2019-07-11 09:32:41 +00:00
parent 54eddda79a
commit c61de0cb84
+2 -2
View File
@@ -825,8 +825,8 @@ class PaymentTransaction(models.Model):
@api.model
def _compute_reference_prefix(self, values):
if values and values.get('invoice_ids'):
many_list = self.resolve_2many_commands('invoice_ids', values['invoice_ids'], fields=['number'])
return ','.join(dic['number'] for dic in many_list)
many_list = self.resolve_2many_commands('invoice_ids', values['invoice_ids'], fields=['name'])
return ','.join(dic['name'] for dic in many_list)
return None
@api.model