diff --git a/l10n_fr_cooperator/README.rst b/l10n_fr_cooperator/README.rst new file mode 100644 index 000000000..c4de89af7 --- /dev/null +++ b/l10n_fr_cooperator/README.rst @@ -0,0 +1,62 @@ +============================== +Cooperator France Localization +============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-coopiteasy%2Fvertical--cooperative-lightgray.png?logo=github + :target: https://github.com/coopiteasy/vertical-cooperative/tree/12.0/l10n_fr_cooperator + :alt: coopiteasy/vertical-cooperative + +|badge1| |badge2| |badge3| + +This is the French localization for the Cooperators module. + +Features: + +- Add French legal form of companies on partner and on Subscription Request +- Remove IBAN field from required field of subscription request + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* Coop IT Easy SC + +Maintainers +~~~~~~~~~~~ + +This module is part of the `coopiteasy/vertical-cooperative `_ project on GitHub. + +You are welcome to contribute. diff --git a/l10n_fr_cooperator/__init__.py b/l10n_fr_cooperator/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/l10n_fr_cooperator/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_fr_cooperator/__manifest__.py b/l10n_fr_cooperator/__manifest__.py new file mode 100644 index 000000000..ab2565a85 --- /dev/null +++ b/l10n_fr_cooperator/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2013-2018 Open Architects Consulting SPRL. +# Copyright 2018-Coop IT Easy SC () +# - Houssine BAKKALI - +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).# +{ + "name": "Cooperator France Localization", + "version": "14.0.1.0.0", + "depends": ["cooperator", "cooperator_website", "l10n_fr"], + "author": "Coop IT Easy SC, Odoo Community Association (OCA)", + "category": "Cooperative management", + "website": "https://github.com/OCA/cooperative", + "license": "AGPL-3", + "summary": """ + This is the French localization for the Cooperators module + """, + "data": [ + "views/certificate_template.xml", + ], + "installable": True, + "auto-install": True, +} diff --git a/l10n_fr_cooperator/i18n/l10n_fr_cooperator.pot b/l10n_fr_cooperator/i18n/l10n_fr_cooperator.pot new file mode 100644 index 000000000..5ee483121 --- /dev/null +++ b/l10n_fr_cooperator/i18n/l10n_fr_cooperator.pot @@ -0,0 +1,177 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_fr_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_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "ASBL" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Association" +msgstr "" + +#. module: l10n_fr_cooperator +#: model_terms:ir.ui.view,arch_db:l10n_fr_cooperator.certificate_i18n_fr +msgid "Ce document atteste d’une souscription en numéraire au\n" +" capital d’une société, répondant à la définition\n" +" communautaire de la Petite et Moyenne Entreprise, dont\n" +" les titres ne sont pas admis aux négociations sur un\n" +" marché d’instruments financiers français ou étranger en\n" +" application de l’article 199 terdecies 0A du CGI.\n" +"
\n" +" Conformément aux statuts, les souscriptions de parts\n" +" sociales de type A et B n’ouvre pas droit à\n" +" rémunération.\n" +"
\n" +" La société remplit les conditions mentionnées aux c, d\n" +" et e du 2° du I de l’article 199 terdecies-0 A du code\n" +" général des impôts :\n" +"
\n" +" c) La société est soumise à l’impôt sur les sociétés\n" +" dans les conditions de droit commun ;\n" +"
\n" +"
\n" +" c bis) La société compte au moins deux salariés à la\n" +" clôture de son premier exercice ou un salarié si elle\n" +" est soumise à l’obligation de s’inscrire à la chambre de\n" +" métiers et de l’artisanat ;\n" +"
\n" +"
\n" +" d) La société exerce une activité commerciale,\n" +" industrielle, artisanale, libérale ou agricole, à\n" +" l’exclusion des activités procurant des revenus garantis\n" +" en raison de l’existence d’un tarif réglementé de rachat\n" +" de la production, des activités financières, des\n" +" activités de gestion de patrimoine mobilier définie à\n" +" l’article 885 O quater et des activités immobilières.\n" +" Toutefois, les exclusions relatives à l’exercice d’une\n" +" activité financière ou immobilière ne sont pas\n" +" applicables aux entreprises solidaires mentionnées à\n" +" l’article L. 3332-17-1 du code du travail.\n" +"
\n" +" La société n’exerce pas une activité de production\n" +" d’électricité utilisant l’énergie radiative du soleil ;\n" +"
\n" +"
\n" +" d bis) Les actifs de la société ne sont pas constitués\n" +" de façon prépondérante de métaux précieux, d’œuvres\n" +" d’art, d’objets de collection, d’antiquités, de chevaux\n" +" de course ou de concours ou, sauf si l’objet même de son\n" +" activité consiste en leur consommation ou en leur vente\n" +" au détail, de vins ou d’alcools ;\n" +"
\n" +"
\n" +" d ter) Les souscriptions au capital de la société\n" +" confèrent aux souscripteurs les seuls droits résultant\n" +" de la qualité d’actionnaire ou d’associé, à l’exclusion\n" +" de toute autre contrepartie notamment sous la forme de\n" +" tarifs préférentiels ou d’accès prioritaire aux biens\n" +" produits ou aux services rendus par la société ;\n" +"
\n" +"
\n" +" e) La société doit être une petite et moyenne entreprise\n" +" qui satisfait à la définition des petites et moyennes\n" +" entreprises qui figure à l’annexe I au règlement (CE) n°\n" +" 800/2008 de la Commission du 6 août 2008 déclarant\n" +" certaines catégories d’aide compatibles avec le marché\n" +" commun en application des articles 87 et 88 du traité\n" +" (Règlement général d’exemption par catégorie) ;\n" +"
" +msgstr "" + +#. module: l10n_fr_cooperator +#: model:ir.model.fields,field_description:l10n_fr_cooperator.field_subscription_request__company_type +msgid "Company type" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Company under public law" +msgstr "" + +#. module: l10n_fr_cooperator +#: model:ir.model,name:l10n_fr_cooperator.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Cooperative" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "EURL / Entreprise individuelle" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Foundation" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Individual company" +msgstr "" + +#. module: l10n_fr_cooperator +#: model:ir.model.fields,field_description:l10n_fr_cooperator.field_res_partner__legal_form +#: model:ir.model.fields,field_description:l10n_fr_cooperator.field_res_users__legal_form +msgid "Legal form" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "Partnership" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SA / SAS" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SARL" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SCRL" +msgstr "" + +#. module: l10n_fr_cooperator +#: selection:res.partner,legal_form:0 +#: selection:subscription.request,company_type:0 +msgid "SPRL" +msgstr "" + +#. module: l10n_fr_cooperator +#: model:ir.model,name:l10n_fr_cooperator.model_subscription_request +msgid "Subscription Request" +msgstr "" + diff --git a/l10n_fr_cooperator/models/__init__.py b/l10n_fr_cooperator/models/__init__.py new file mode 100644 index 000000000..4f14bd00a --- /dev/null +++ b/l10n_fr_cooperator/models/__init__.py @@ -0,0 +1,2 @@ +from . import subscription_request +from . import partner diff --git a/l10n_fr_cooperator/models/partner.py b/l10n_fr_cooperator/models/partner.py new file mode 100644 index 000000000..92e9af79c --- /dev/null +++ b/l10n_fr_cooperator/models/partner.py @@ -0,0 +1,20 @@ +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + legal_form = fields.Selection( + selection_add=[ + ("asso", "Association"), + ("eurl", "EURL / Entreprise individuelle"), + ("sarl", "SARL"), + ("sa", "SA / SAS"), + ], + ondelete={ + "asso": "set null", + "eurl": "set null", + "sarl": "set null", + "sa": "set null", + }, + ) diff --git a/l10n_fr_cooperator/models/subscription_request.py b/l10n_fr_cooperator/models/subscription_request.py new file mode 100644 index 000000000..a1b18c145 --- /dev/null +++ b/l10n_fr_cooperator/models/subscription_request.py @@ -0,0 +1,27 @@ +from odoo import fields, models + + +class SubscriptionRequest(models.Model): + _inherit = "subscription.request" + + company_type = fields.Selection( + selection_add=[ + ("asso", "Association"), + ("eurl", "EURL / Entreprise individuelle"), + ("sarl", "SARL"), + ("sa", "SA / SAS"), + ], + ondelete={ + "asso": "set null", + "eurl": "set null", + "sarl": "set null", + "sa": "set null", + }, + ) + + 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 diff --git a/l10n_fr_cooperator/readme/CONTRIBUTORS.rst b/l10n_fr_cooperator/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8c568398a --- /dev/null +++ b/l10n_fr_cooperator/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Coop IT Easy SC diff --git a/l10n_fr_cooperator/readme/DESCRIPTION.rst b/l10n_fr_cooperator/readme/DESCRIPTION.rst new file mode 100644 index 000000000..19fd920cf --- /dev/null +++ b/l10n_fr_cooperator/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +This is the French localization for the Cooperators module. + +Features: + +- Add French legal form of companies on partner and on Subscription Request +- Remove IBAN field from required field of subscription request diff --git a/l10n_fr_cooperator/static/description/index.html b/l10n_fr_cooperator/static/description/index.html new file mode 100644 index 000000000..a02bce4e1 --- /dev/null +++ b/l10n_fr_cooperator/static/description/index.html @@ -0,0 +1,419 @@ + + + + + + +Cooperator France Localization + + + +
+

Cooperator France Localization

+ + +

Beta License: AGPL-3 coopiteasy/vertical-cooperative

+

This is the French localization for the Cooperators module.

+

Features:

+
    +
  • Add French legal form of companies on partner and on Subscription Request
  • +
  • Remove IBAN field from required field of subscription request
  • +
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Maintainers

+

This module is part of the coopiteasy/vertical-cooperative project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/l10n_fr_cooperator/views/certificate_template.xml b/l10n_fr_cooperator/views/certificate_template.xml new file mode 100644 index 000000000..d9a3a1f44 --- /dev/null +++ b/l10n_fr_cooperator/views/certificate_template.xml @@ -0,0 +1,79 @@ + + + + diff --git a/setup/l10n_fr_cooperator/odoo/addons/l10n_fr_cooperator b/setup/l10n_fr_cooperator/odoo/addons/l10n_fr_cooperator new file mode 120000 index 000000000..e65de37a2 --- /dev/null +++ b/setup/l10n_fr_cooperator/odoo/addons/l10n_fr_cooperator @@ -0,0 +1 @@ +../../../../l10n_fr_cooperator \ No newline at end of file diff --git a/setup/l10n_fr_cooperator/setup.py b/setup/l10n_fr_cooperator/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/l10n_fr_cooperator/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)