From c61de0cb84b043a8d880ff07c82357b51cdf20e8 Mon Sep 17 00:00:00 2001 From: Johan Demaret Rivarola Date: Wed, 10 Jul 2019 16:21:37 +0000 Subject: [PATCH] [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. --- addons/payment/models/payment_acquirer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index a6adb02778d..7b747de0ce6 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -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