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.
 
 
 
 

29 lines
1.1 KiB

# -*- coding: utf-8 -*-
from openerp import fields, models
class subscription_request(models.Model):
_inherit = 'subscription.request'
company_type = fields.Selection(selection_add=[
('ei', 'Individual company'),
('snc', 'Partnership'),
('sa', 'Limited company (SA)'),
('sarl', 'Limited liability company (Ltd)'),
('sc', 'Cooperative'),
('asso', 'Association'),
('fond', 'Foundation'),
('edp', 'Company under public law')
])
def get_required_field(self):
req_fields = super(subscription_request, self).get_required_field()
if 'iban' in req_fields:
req_fields.remove('iban')
return req_fields
def check_iban(self, iban):
if iban:
return super(subscription_request, self).check_iban(iban)
return True