Skip to content

Commit

Permalink
[FIX] payment_paypal: create account with at least required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Sep 16, 2014
1 parent 67eb689 commit 199a8c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/payment_paypal/models/paypal.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ def _migrate_paypal_account(self, cr, uid, context=None):
else:
paypal_view = self.pool['ir.model.data'].get_object(cr, uid, 'payment_paypal', 'paypal_acquirer_button')
self.create(cr, uid, {
'name': 'paypal',
'name': 'Paypal',
'provider': 'paypal',
'paypal_email_account': company_paypal_account,
'view_template_id': paypal_view.id,
}, context=context)
Expand Down

0 comments on commit 199a8c4

Please sign in to comment.