From ef65f1b344d2c214f182de2a1d33d9c442089c09 Mon Sep 17 00:00:00 2001 From: RemiFr82 Date: Fri, 15 Mar 2024 15:01:36 +0100 Subject: [PATCH] [ADD] l10n_fr_association modules --- l10n_fr_association/__init__.py | 1 + l10n_fr_association/__manifest__.py | 34 ++++++++++ l10n_fr_association/i18n/fr.po | 81 +++++++++++++++++++++++ l10n_fr_association/models/__init__.py | 1 + l10n_fr_association/models/res_partner.py | 17 +++++ l10n_fr_association/views/res_partner.xml | 31 +++++++++ 6 files changed, 165 insertions(+) create mode 100644 l10n_fr_association/__init__.py create mode 100644 l10n_fr_association/__manifest__.py create mode 100644 l10n_fr_association/i18n/fr.po create mode 100644 l10n_fr_association/models/__init__.py create mode 100644 l10n_fr_association/models/res_partner.py create mode 100644 l10n_fr_association/views/res_partner.xml diff --git a/l10n_fr_association/__init__.py b/l10n_fr_association/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/l10n_fr_association/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_fr_association/__manifest__.py b/l10n_fr_association/__manifest__.py new file mode 100644 index 0000000..5374bc0 --- /dev/null +++ b/l10n_fr_association/__manifest__.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "French association", + "version": "1.0.0", + "summary": """ + Add fields on partners for franch associations (law from 1901) + """, + "description": """ + TO WRITE + """, + "author": "RemiFr82", + "website": "https://remifr82.me", + "license": "AGPL-3", + "category": "Human Resources", + "depends": [ + "base", + ], + "data": [ + "views/res_partner.xml", + ], + "assets": {}, + "demo": [], + "auto_install": False, + "external_dependencies": [], + "application": True, + "css": [], + "images": [], + "installable": True, + "maintainer": "RemiFr82", + "pre_init_hook": "", + "post_init_hook": "", + "uninstall_hook": "", +} diff --git a/l10n_fr_association/i18n/fr.po b/l10n_fr_association/i18n/fr.po new file mode 100644 index 0000000..fbfcfab --- /dev/null +++ b/l10n_fr_association/i18n/fr.po @@ -0,0 +1,81 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_fr_association +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0-20230613\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-03-15 13:54+0000\n" +"PO-Revision-Date: 2024-03-15 13:54+0000\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_association +#: model_terms:ir.ui.view,arch_db:l10n_fr_association.view_partner_form_inherit_base +msgid "Association info" +msgstr "Infos association" + +#. module: l10n_fr_association +#: model:ir.model,name:l10n_fr_association.model_res_partner +msgid "Contact" +msgstr "" + +#. module: l10n_fr_association +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__asso_create_date +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__asso_create_date +msgid "Creation date" +msgstr "Date de création" + +#. module: l10n_fr_association +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__internal_regul_update_date +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__internal_regul_update_date +msgid "Internal Regul update" +msgstr "Màj du règlement intérieur" + +#. module: l10n_fr_association +#: model_terms:ir.ui.view,arch_db:l10n_fr_association.view_partner_form_inherit_base +msgid "Internal documents" +msgstr Documents internes" + +#. module: l10n_fr_association +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__last_ga_date +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__last_ga_date +msgid "Last general assembly" +msgstr "Dernière AG" + +#. module: l10n_fr_association +#: model_terms:ir.ui.view,arch_db:l10n_fr_association.view_partner_form_inherit_base +msgid "Legal documents" +msgstr "Document légaux" + +#. module: l10n_fr_association +#: model_terms:ir.ui.view,arch_db:l10n_fr_association.view_partner_form_inherit_base +msgid "Legal information" +msgstr "Informations légales" + +#. module: l10n_fr_association +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__internal_regul_file +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__statuses_file +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__internal_regul_file +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__statuses_file +msgid "Statuses file" +msgstr "Statuts" + +#. module: l10n_fr_association +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__internal_regul_filename +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__statuses_filename +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__internal_regul_filename +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__statuses_filename +msgid "Statuses filename" +msgstr "Nom du fichier statuts" + +#. module: l10n_fr_association +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_partner__statuses_update_date +#: model:ir.model.fields,field_description:l10n_fr_association.field_res_users__statuses_update_date +msgid "Statuses update" +msgstr "Màj des statuts" diff --git a/l10n_fr_association/models/__init__.py b/l10n_fr_association/models/__init__.py new file mode 100644 index 0000000..91fed54 --- /dev/null +++ b/l10n_fr_association/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner diff --git a/l10n_fr_association/models/res_partner.py b/l10n_fr_association/models/res_partner.py new file mode 100644 index 0000000..7164820 --- /dev/null +++ b/l10n_fr_association/models/res_partner.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +from odoo import models, fields + + +class ResPartner(models.Model): + _inherit = "res.partner" + + # Important dates + asso_create_date = fields.Date(string="Creation date", tracking="80") + last_ga_date = fields.Date(string="Last general assembly", tracking="81") + # Documents fields + statuses_file = fields.Binary("Statuses file", tracking="82") + statuses_filename = fields.Char("Statuses filename") + statuses_update_date = fields.Date("Statuses update", tracking="83") + internal_regul_file = fields.Binary("Statuses file", tracking="84") + internal_regul_filename = fields.Char("Statuses filename") + internal_regul_update_date = fields.Date("Internal Regul update", tracking="85") diff --git a/l10n_fr_association/views/res_partner.xml b/l10n_fr_association/views/res_partner.xml new file mode 100644 index 0000000..3c24d2e --- /dev/null +++ b/l10n_fr_association/views/res_partner.xml @@ -0,0 +1,31 @@ + + + + + res.partner.view.form.inherit + res.partner + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file