<commit_before># -*- coding: utf-8 -*-

from openerp import api, fields, models, _


class subscription_request(models.Model):
    _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')])
        
#     def get_required_field(self):
#         required_fields = super(subscription_request,self).get_required_field()
#         if 'iban' in required_fields:
#             required_fields.remove('iban')
#         
#         return required_fields

    def check_belgian_identification_id(self, nat_register_num):
        #deactivate number validation for swiss localization
        return True<commit_msg>[FIX] remove no_registre from required field<commit_after># -*- coding: utf-8 -*-

from openerp import api, fields, models, _


class subscription_request(models.Model):
    _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')])
        
    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')
         
        return required_fields

    def check_belgian_identification_id(self, nat_register_num):
        #deactivate number validation for swiss localization
        return True
{'fraction_non_alphanumeric': 0.1088495575221239, 'fraction_numerical': 0.0008849557522123894, 'mean_word_length': 1.6382730455075847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '642302', 'n_tokens_mistral': 548, 'n_tokens_neox': 516, 'n_words': 110}