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.
20 lines
670 B
20 lines
670 B
# -*- coding: utf-8 -*-
|
|
from openerp import fields, models
|
|
|
|
|
|
class SubscriptionRequest(models.Model):
|
|
_inherit = 'subscription.request'
|
|
|
|
company_type = fields.Selection(selection_add=[
|
|
('asso', 'Association'),
|
|
('eurl', 'EURL / Entreprise individuelle'),
|
|
('sarl', 'SARL'),
|
|
('sa', 'SA / SAS')
|
|
])
|
|
|
|
def get_required_field(self):
|
|
req_fields = super(SubscriptionRequest, self).get_required_field()
|
|
if 'iban' in req_fields:
|
|
req_fields.remove('iban')
|
|
|
|
return req_fields
|