Browse Source

[IMP] override company type selection for swiss

pull/1/head
houssine 7 years ago
parent
commit
2a145d4bdd
  1. 14
      easy_my_coop_ch/models/coop.py

14
easy_my_coop_ch/models/coop.py

@ -6,10 +6,14 @@ from openerp import api, fields, models, _
class subscription_request(models.Model): class subscription_request(models.Model):
_inherit = 'subscription.request' _inherit = 'subscription.request'
# company_type = fields.Selection([('asso','Association'),
# ('eurl','EURL / Entreprise individuelle'),
# ('sarl','SARL'),
# ('sa','SA / SAS')])
company_type = fields.Selection([('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): # def get_required_field(self):
# required_fields = super(subscription_request,self).get_required_field() # required_fields = super(subscription_request,self).get_required_field()
@ -19,5 +23,5 @@ class subscription_request(models.Model):
# return required_fields # return required_fields
def check_belgian_identification_id(self, nat_register_num): def check_belgian_identification_id(self, nat_register_num):
#deactivate number validation for french localization
#deactivate number validation for swiss localization
return True return True
Loading…
Cancel
Save