Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
6c034a4
[IMP] add swiss localization of easy my coop
houssine78 May 28, 2018
8a8926c
[IMP] override company type selection for swiss
houssine78 Jun 1, 2018
98d98b4
[IMP] remove national register number from views and template
houssine78 Jun 1, 2018
446d685
[IMP] remove national register number from company subscription form
houssine78 Jun 1, 2018
0ead5ad
[PEP8] pep8 code style refactoring
houssine78 Aug 22, 2018
ca59a0a
[FIX] remove no_registre from required field
houssine78 Feb 28, 2019
ee89459
[PEP8] fix pep8
houssine78 Apr 6, 2019
e9f52e9
[FIX] fix ported from v9
houssine78 May 7, 2019
83f4d2e
[MIG] migrate module to v12
houssine78 May 10, 2019
8db2917
[REFACT] for legal reason we remove the niss number to email instead
houssine78 Aug 5, 2019
e66648d
[IMP] as it's implemented in the core. it's not needed anymore
houssine78 Aug 6, 2019
3f740cc
[FIX] fix selection field
houssine78 Sep 9, 2019
2b10b09
[FIX] fix typo and set back selection_add
houssine78 Sep 9, 2019
5dd4186
[FIX] fix inherit_id
houssine78 Sep 9, 2019
6cc0900
Pypi setup
raneq Feb 10, 2020
520b1cb
[ADD] module readmes
robinkeunen Apr 10, 2020
c015e22
[REF] OCA pre-commit compliance
robinkeunen Apr 21, 2020
1acb74e
automatic fixes
robinkeunen Apr 21, 2020
3ac4682
[REF] pretty xml
robinkeunen Apr 22, 2020
890e596
[FIX] emc_fr,emc_ch : missing dependency
robinkeunen May 6, 2020
fc49976
[FIX] emc_ch: wrong import
robinkeunen May 6, 2020
30ba8c7
make travis green again
robinkeunen Aug 12, 2020
2a4f0e1
[FIX] easy_my_coop_ch : validate button must appear when no iban
vvrossem Oct 21, 2020
4ece00c
[REF] pre-commit semanticless fixes
robinkeunen May 11, 2021
d1cab7a
[REF] split coop.py
robinkeunen May 11, 2021
273b9f4
[FIX] Adjust website URLs in all manifest files
carmenbianca Nov 30, 2021
773918b
[IMP] readme
remytms Jan 12, 2022
31df8aa
[UPD] Update all .pot files
Mar 8, 2022
f559ec5
[REF] emc_website: move iban_template to emc_be, adapt other l10n
robinkeunen Feb 15, 2022
fa6e894
[FIX] inheritance for emc localization
victor-champonnois Feb 24, 2022
e80898b
[FIX] put iban inside container instead of replace
victor-champonnois Mar 8, 2022
a49db80
[UPD] Update easy_my_coop_ch.pot
Mar 8, 2022
c322b1b
[REL] easy_my_coop_ch 12.0.1.2.0
huguesdk Mar 20, 2022
d73f898
[REF] easy_my_coop -> cooperator: easy_my_coop_ch
robinkeunen Jun 1, 2022
554e104
[UPD] Update easy_my_coop_ch.pot
Jun 1, 2022
1848386
[REF] easy_my_coop_ch -> l10n_ch_cooperator
victor-champonnois Jun 1, 2022
4cd098d
[REF] l10n_ch_cooperator: Remove reference to EMC in readme
carmenbianca Jun 1, 2022
a2ff4ce
[REF] rename easy_my_coop_website: l10n_ch_cooperator
victor-champonnois Jun 1, 2022
6c51c82
[UPD] Update l10n_ch_cooperator.pot
Jun 1, 2022
8cd3881
[UPD] README.rst
github-grap-bot Jun 23, 2022
5febadb
[FIX] SCRLfs → SC
carmenbianca Jun 29, 2022
bdcfa04
[IMP] update readme
huguesdk Aug 22, 2022
83cfec2
Add auto-install to localization modules
victor-champonnois Sep 1, 2022
3daf35e
l10n_ch_cooperator 12.0.1.3.0
github-grap-bot Sep 5, 2022
dc16a61
[MIG] l10n_ch_cooperator: migration to 13.0
huguesdk Nov 26, 2024
cdc751b
[MIG] l10n_ch_cooperator: migration to 14.0
huguesdk Nov 26, 2024
5b8b020
[MIG] l10n_ch_cooperator: migration to 15.0
huguesdk Nov 26, 2024
1509f06
[MIG] l10n_ch_cooperator: migration to 16.0
huguesdk Nov 26, 2024
4756c3c
[IMP] rename partner.py to res_partner.py
huguesdk Nov 26, 2024
f485a97
[IMP] define company type list in one place
huguesdk Nov 26, 2024
cabf978
[IMP] adjust copyright statements
huguesdk Nov 26, 2024
b0cfc14
[IMP] l10n_ch_cooperator: run pre-commit
huguesdk Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions l10n_ch_cooperator/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
=======================
Cooperators Switzerland
=======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:8f89b275b2598f9a6b2875d4591289503d8ab27479ba048fdbc05990f118c0a7
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcooperative-lightgray.png?logo=github
:target: https://github.com/OCA/cooperative/tree/16.0/l10n_ch_cooperator
:alt: OCA/cooperative
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/cooperative-16-0/cooperative-16-0-l10n_ch_cooperator
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/cooperative&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This is the Swiss localization for the Cooperators module

Features:

- Add Swiss legal form of companies on partner and on Subscription Request

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/cooperative/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/cooperative/issues/new?body=module:%20l10n_ch_cooperator%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Coop IT Easy SC

Contributors
~~~~~~~~~~~~

* Coop IT Easy SC
* Houssine BAKKALI <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/cooperative <https://github.com/OCA/cooperative/tree/16.0/l10n_ch_cooperator>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions l10n_ch_cooperator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2018 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from . import models
20 changes: 20 additions & 0 deletions l10n_ch_cooperator/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: 2013-2018 Open Architects Consulting SPRL
# SPDX-FileCopyrightText: 2018 Coop IT Easy SC
# SPDX-FileContributor: Houssine BAKKALI <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

{
"name": "Cooperators Switzerland",
"summary": "Cooperators Switzerland localization",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"depends": ["cooperator", "cooperator_website", "l10n_ch"],
"author": "Coop IT Easy SC, Odoo Community Association (OCA)",
"category": "Cooperative management",
"website": "https://github.com/OCA/cooperative",
"data": [
"views/subscription_template.xml",
],
"auto-install": True,
}
118 changes: 118 additions & 0 deletions l10n_ch_cooperator/i18n/l10n_ch_cooperator.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_ch_cooperator
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "ASBL"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "Association"
msgstr ""

#. module: l10n_ch_cooperator
#: model_terms:ir.ui.view,arch_db:l10n_ch_cooperator.iban_template_ch
msgid "Bank Account Number"
msgstr ""

#. module: l10n_ch_cooperator
#: model_terms:ir.ui.view,arch_db:l10n_ch_cooperator.iban_template_ch
msgid "CH48523080767127"
msgstr ""

#. module: l10n_ch_cooperator
#: model:ir.model.fields,field_description:l10n_ch_cooperator.field_subscription_request__company_type
msgid "Company type"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "Company under public law"
msgstr ""

#. module: l10n_ch_cooperator
#: model:ir.model,name:l10n_ch_cooperator.model_res_partner
msgid "Contact"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "Cooperative"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "EURL / Entreprise individuelle"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "Foundation"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "Individual company"
msgstr ""

#. module: l10n_ch_cooperator
#: model:ir.model.fields,field_description:l10n_ch_cooperator.field_res_partner__legal_form
#: model:ir.model.fields,field_description:l10n_ch_cooperator.field_res_users__legal_form
msgid "Legal form"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "Partnership"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "SA / SAS"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "SARL"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "SCRL"
msgstr ""

#. module: l10n_ch_cooperator
#: selection:res.partner,legal_form:0
#: selection:subscription.request,company_type:0
msgid "SPRL"
msgstr ""

#. module: l10n_ch_cooperator
#: model:ir.model,name:l10n_ch_cooperator.model_subscription_request
msgid "Subscription Request"
msgstr ""

6 changes: 6 additions & 0 deletions l10n_ch_cooperator/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2018 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from . import res_partner
from . import subscription_request
24 changes: 24 additions & 0 deletions l10n_ch_cooperator/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-FileCopyrightText: 2019 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from odoo import fields, models


def get_company_type_selection():
return [
("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"),
]


class ResPartner(models.Model):
_inherit = "res.partner"

legal_form = fields.Selection(selection_add=get_company_type_selection())
27 changes: 27 additions & 0 deletions l10n_ch_cooperator/models/subscription_request.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: 2018 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later

from odoo import fields, models

from . import res_partner


class SubscriptionRequest(models.Model):
_inherit = "subscription.request"

company_type = fields.Selection(
selection_add=res_partner.get_company_type_selection()
)

def get_required_field(self):
req_fields = super(SubscriptionRequest, self).get_required_field()
if "iban" in req_fields:
req_fields.remove("iban")

return req_fields

def check_iban(self, iban):
if iban:
return super(SubscriptionRequest, self).check_iban(iban)
return True
2 changes: 2 additions & 0 deletions l10n_ch_cooperator/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Coop IT Easy SC
* Houssine BAKKALI <[email protected]>
5 changes: 5 additions & 0 deletions l10n_ch_cooperator/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This is the Swiss localization for the Cooperators module

Features:

- Add Swiss legal form of companies on partner and on Subscription Request
Loading