You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
510 B
13 lines
510 B
# -*- coding: utf-8 -*-
|
|
from openerp import api, fields, models, _
|
|
|
|
class SubscriptionRequest(models.Model):
|
|
_inherit = 'subscription.request'
|
|
|
|
payment_type = fields.Selection([('online', 'Online'),
|
|
('deferred', 'Deferred')], string='Payment Type')
|
|
|
|
def send_capital_release_request(self, invoice):
|
|
if self.payment_type == 'deferred':
|
|
super(SubscriptionRequest, self).send_capital_release_request(invoice)
|
|
return True
|