This commit adds a new model, Payment Method, which stores a reference to the payment acquirer's database and a reference to a partner. Each payment module must have its own implementation. The implementation is completely abstract but may not suit every provider's way of implementing recurring payments.
10 lines
242 B
Python
10 lines
242 B
Python
from openerp.osv import fields, osv
|
|
|
|
|
|
class res_partner(osv.osv):
|
|
_name = 'res.partner'
|
|
_inherit = 'res.partner'
|
|
_columns = {
|
|
'payment_method_ids': fields.one2many('payment.method', 'partner_id', 'Payment Methods'),
|
|
}
|