projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21b1203
)
[FIX] payment_paypal: add company name in paypal item name
author
Denis Ledoux
<dle@odoo.com>
Mon, 3 Nov 2014 14:13:38 +0000
(15:13 +0100)
committer
Denis Ledoux
<dle@odoo.com>
Mon, 3 Nov 2014 14:14:37 +0000
(15:14 +0100)
So the company name is displayed in the paypal payment form
addons/payment_paypal/models/paypal.py
patch
|
blob
|
history
diff --git
a/addons/payment_paypal/models/paypal.py
b/addons/payment_paypal/models/paypal.py
index
bade234
..
73db2e7
100644
(file)
--- 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 '',