[FIX] payment_paypal: add company name in paypal item name

So the company name is displayed in the paypal payment form
This commit is contained in:
Denis Ledoux 2014-11-03 15:13:38 +01:00
parent 21b1203ee0
commit 8852ab03e7
1 changed files with 1 additions and 1 deletions

View File

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