Browse Source

[PEP8] fix pep8

pull/1/head
houssine 6 years ago
parent
commit
da43290f08
  1. 29
      easy_my_coop_ch/models/coop.py

29
easy_my_coop_ch/models/coop.py

@ -1,27 +1,26 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from openerp import api, fields, models, _
from openerp import fields, models
class subscription_request(models.Model): class subscription_request(models.Model):
_inherit = 'subscription.request' _inherit = 'subscription.request'
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')])
company_type = fields.Selection([('ei', 'Individual company'),
('snc', 'Partnership'),
('sa', 'Limited company (SA)'),
('sarl', 'Limited liability company (Ltd)'), #noqa
('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()
if 'no_registre' in required_fields:
required_fields.remove('no_registre')
req_fields = super(subscription_request, self).get_required_field()
if 'no_registre' in req_fields:
req_fields.remove('no_registre')
return required_fields
return req_fields
def check_belgian_identification_id(self, nat_register_num): def check_belgian_identification_id(self, nat_register_num):
#deactivate number validation for swiss localization
# deactivate number validation for swiss localization
return True return True
Loading…
Cancel
Save