diff --git a/easy_my_coop_ch/__init__.py b/easy_my_coop_ch/__init__.py new file mode 100644 index 0000000..9a7e03e --- /dev/null +++ b/easy_my_coop_ch/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/easy_my_coop_ch/__openerp__.py b/easy_my_coop_ch/__openerp__.py new file mode 100644 index 0000000..89776d3 --- /dev/null +++ b/easy_my_coop_ch/__openerp__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2013-2017 Open Architects Consulting SPRL. +# Copyright (C) 2018- Coop IT Easy SCRLfs. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name": "Easy My Coop CH", + "version": "1.0", + "depends": ["easy_my_coop", + "l10n_ch", + "theme_light",], + "author": "Houssine BAKKALI ", + "category": "Cooperative management", + 'webstite': "www.coopiteasy.be", + "description": """ + This is the swiss localization for the easy my coop module + """, + 'data': [ + #'views/subscription_template.xml', + #'views/certificate_template.xml' + ], + 'installable': True, +} \ No newline at end of file diff --git a/easy_my_coop_ch/models/__init__.py b/easy_my_coop_ch/models/__init__.py new file mode 100644 index 0000000..0b75654 --- /dev/null +++ b/easy_my_coop_ch/models/__init__.py @@ -0,0 +1 @@ +from . import coop \ No newline at end of file diff --git a/easy_my_coop_ch/models/coop.py b/easy_my_coop_ch/models/coop.py new file mode 100644 index 0000000..121bc50 --- /dev/null +++ b/easy_my_coop_ch/models/coop.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- + +from openerp import api, fields, models, _ + + +class subscription_request(models.Model): + _inherit = 'subscription.request' + +# company_type = fields.Selection([('asso','Association'), +# ('eurl','EURL / Entreprise individuelle'), +# ('sarl','SARL'), +# ('sa','SA / SAS')]) + +# 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 french localization + return True \ No newline at end of file diff --git a/easy_my_coop_ch/views/certificate_template.xml b/easy_my_coop_ch/views/certificate_template.xml new file mode 100644 index 0000000..d2c72da --- /dev/null +++ b/easy_my_coop_ch/views/certificate_template.xml @@ -0,0 +1,63 @@ + + + + + + + + \ No newline at end of file diff --git a/easy_my_coop_ch/views/subscription_template.xml b/easy_my_coop_ch/views/subscription_template.xml new file mode 100644 index 0000000..8dc57c0 --- /dev/null +++ b/easy_my_coop_ch/views/subscription_template.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file