From 8852ab03e7af0135eb9e3dda92a164300d49a823 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 3 Nov 2014 15:13:38 +0100 Subject: [PATCH] [FIX] payment_paypal: add company name in paypal item name So the company name is displayed in the paypal payment form --- addons/payment_paypal/models/paypal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment_paypal/models/paypal.py b/addons/payment_paypal/models/paypal.py index bade234..73db2e7 100644 --- a/addons/payment_paypal/models/paypal.py +++ b/addons/payment_paypal/models/paypal.py @@ -107,7 +107,7 @@ class AcquirerPaypal(osv.Model): paypal_tx_values.update({ 'cmd': '_xclick', 'business': acquirer.paypal_email_account, - 'item_name': tx_values['reference'], + 'item_name': '%s: %s' % (acquirer.company_id.name, tx_values['reference']), 'item_number': tx_values['reference'], 'amount': tx_values['amount'], 'currency_code': tx_values['currency'] and tx_values['currency'].name or '', -- 1.7.10.4