- added a call to _migrate_paypal_account in the payment_paypal data that does the migration from company.paypal_account (char field) to a payment.acquirer and company.paypal_account becoming a function field, with a getter / setter. This function field is company aware. - added an update of the res_config view of invoicing to link to the list of acquirers - added possibilty to install acquirers from invoicing (paypal / ogone / adyen are installable through config) bzr revid: tde@openerp.com-20140123150135-07b4pkbjade6vimq
23 lines
734 B
Python
23 lines
734 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from openerp.osv import fields, osv
|
|
|
|
|
|
class AccountPaymentConfig(osv.TransientModel):
|
|
_inherit = 'account.config.settings'
|
|
|
|
_columns = {
|
|
'module_payment_paypal': fields.boolean(
|
|
'Manage Payments Using Paypal',
|
|
help='Blahblahblah\n'
|
|
'-It installs the module payment_paypal.'),
|
|
'module_payment_ogone': fields.boolean(
|
|
'Manage Payments Using Ogone',
|
|
help='Blahblahblah\n'
|
|
'-It installs the module payment_ogone.'),
|
|
'module_payment_adyen': fields.boolean(
|
|
'Manage Payments Using Adyen',
|
|
help='Blahblahblah\n'
|
|
'-It installs the module payment_adyen.'),
|
|
}
|