Browse Source

[ADD] l10n_fr_association modules

16.0
RemiFr82 9 months ago
parent
commit
ef65f1b344
  1. 1
      l10n_fr_association/__init__.py
  2. 34
      l10n_fr_association/__manifest__.py
  3. 81
      l10n_fr_association/i18n/fr.po
  4. 1
      l10n_fr_association/models/__init__.py
  5. 17
      l10n_fr_association/models/res_partner.py
  6. 31
      l10n_fr_association/views/res_partner.xml

1
l10n_fr_association/__init__.py

@ -0,0 +1 @@
from . import models

34
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": "",
}

81
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"

1
l10n_fr_association/models/__init__.py

@ -0,0 +1 @@
from . import res_partner

17
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")

31
l10n_fr_association/views/res_partner.xml

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_partner_form_inherit_base" model="ir.ui.view">
<field name="name">res.partner.view.form.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//notebook/page[1]" position="after">
<page name="asso_info" string="Association info" attrs="{'invisible': [('is_company','=',False)]}">
<group name="life_main">
<group name="legal_info" string="Legal information">
<field name="asso_create_date" />
<field name="last_ga_date" />
</group>
<group name="documents" string="Legal documents">
<field name="statuses_file" filename="statuses_filename" />
<field name="statuses_filename" invisible="1" />
<field name="statuses_update_date" />
<separator colspan="2" string="Internal documents" />
<field name="internal_regul_file" filename="internal_regulations_filename" />
<field name="internal_regul_filename" invisible="1" />
<field name="internal_regul_update_date" />
</group>
</group>
</page>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save