houssine
6 years ago
25 changed files with 117 additions and 119 deletions
-
4easy_my_coop/__openerp__.py
-
1easy_my_coop/models/__init__.py
-
61easy_my_coop/models/account_invoice.py
-
20easy_my_coop/models/belgian_identification_id_generator.py
-
15easy_my_coop/wizard/cooperative_history_wizard.xml
-
2easy_my_coop_ch/__openerp__.py
-
2easy_my_coop_document/__init__.py
-
2easy_my_coop_eater/__openerp__.py
-
2easy_my_coop_fr/__openerp__.py
-
16easy_my_coop_fr/models/coop.py
-
2easy_my_coop_recompute_coop_number/__init__.py
-
3easy_my_coop_recompute_coop_number/__openerp__.py
-
2easy_my_coop_recompute_coop_number/wizard/__init__.py
-
4easy_my_coop_recompute_coop_number/wizard/cooperator_number_wizard.py
-
1easy_my_coop_recompute_coop_number/wizard/cooperator_number_wizard.xml
-
3easy_my_coop_taxshelter_report/__openerp__.py
-
2easy_my_coop_website_document/__init__.py
-
2easy_my_coop_website_document/controllers/main.py
-
2easy_my_coop_website_portal/__init__.py
-
2easy_my_coop_website_taxshelter/__init__.py
-
2partner_age/__openerp__.py
@ -1,2 +1,2 @@ |
|||||
# -*- coding: utf8 -*- |
# -*- coding: utf8 -*- |
||||
import models |
|
||||
|
from . import models |
@ -1,23 +1,25 @@ |
|||||
# -*- 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([('asso','Association'), |
|
||||
('eurl','EURL / Entreprise individuelle'), |
|
||||
('sarl','SARL'), |
|
||||
('sa','SA / SAS')]) |
|
||||
|
company_type = fields.Selection([ |
||||
|
('asso', 'Association'), |
||||
|
('eurl', 'EURL / Entreprise individuelle'), |
||||
|
('sarl', 'SARL'), |
||||
|
('sa', 'SA / SAS')]) |
||||
|
|
||||
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() |
||||
if 'iban' in required_fields: |
if 'iban' in required_fields: |
||||
required_fields.remove('iban') |
required_fields.remove('iban') |
||||
|
|
||||
return required_fields |
return required_fields |
||||
|
|
||||
|
# override function to disable the check |
||||
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 french localization |
||||
return True |
return True |
@ -1 +1 @@ |
|||||
import wizard |
|
||||
|
from . import wizard |
@ -1,2 +1,2 @@ |
|||||
# -*- coding: utf-8 -*- |
# -*- coding: utf-8 -*- |
||||
import cooperator_number_wizard |
|
||||
|
from . import cooperator_number_wizard |
@ -1,2 +1,2 @@ |
|||||
# -*- coding: utf8 -*- |
# -*- coding: utf8 -*- |
||||
import controllers |
|
||||
|
from . import controllers |
@ -1,2 +1,2 @@ |
|||||
# -*- coding: utf8 -*- |
# -*- coding: utf8 -*- |
||||
import controllers |
|
||||
|
from . import controllers |
@ -1,2 +1,2 @@ |
|||||
# -*- coding: utf8 -*- |
# -*- coding: utf8 -*- |
||||
import controllers |
|
||||
|
from . import controllers |
Write
Preview
Loading…
Cancel
Save
Reference in new issue