From 939be67d94a86ccf5987689dd1f0906f625c83bc Mon Sep 17 00:00:00 2001 From: RemiFr82 Date: Mon, 27 May 2024 23:42:17 +0200 Subject: [PATCH] [ADD] partner_contact_birthplace module --- partner_contact_birthplace/__init__.py | 3 ++ partner_contact_birthplace/__manifest__.py | 50 +++++++++++++++++++ partner_contact_birthplace/i18n/fr.po | 27 ++++++++++ partner_contact_birthplace/models/__init__.py | 3 ++ .../models/res_partner.py | 9 ++++ .../views/res_partner.xml | 27 ++++++++++ 6 files changed, 119 insertions(+) create mode 100644 partner_contact_birthplace/__init__.py create mode 100644 partner_contact_birthplace/__manifest__.py create mode 100644 partner_contact_birthplace/i18n/fr.po create mode 100644 partner_contact_birthplace/models/__init__.py create mode 100644 partner_contact_birthplace/models/res_partner.py create mode 100644 partner_contact_birthplace/views/res_partner.xml diff --git a/partner_contact_birthplace/__init__.py b/partner_contact_birthplace/__init__.py new file mode 100644 index 0000000..d9c2c2c --- /dev/null +++ b/partner_contact_birthplace/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +from . import models diff --git a/partner_contact_birthplace/__manifest__.py b/partner_contact_birthplace/__manifest__.py new file mode 100644 index 0000000..98389da --- /dev/null +++ b/partner_contact_birthplace/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +{ + "name": "Contact's birth place", + "version": "16.0.1.0.0", + "summary": "Module summary", + "description": """ + Module description + """, + "author": "RemiFr82", + "contributors": "", + "maintainer": "RemiFr82", + "website": "https://git.myceliandre.fr/RemiFr82/odoo-contact-addons.git", + "license": "AGPL-3", + "category": "Customer Relationship Management", + # "price": 0, + # "currency": "EUR", + "application": False, + "installable": True, + "auto_install": False, + # "pre_init_hook": "", + # "post_init_hook": "", + # "uninstall_hook": "", + # "excludes": [], + # "external_dependencies": [], + "depends": [ + "partner_contact_birthdate", + ], + "data": [ + # Base data + # "data/ir_model.xml", + # Security + # 'security/res_groups.xml', + # 'security/ir.model.access.csv', + # 'security/ir_rule.xml', + # Views + "views/res_partner.xml", + # Wizards + # 'wizards/transient_model.xml', + # Reports + # 'reports/report_templates.xml', + # 'reports/sql_view.xml', + ], + # "assets": [], + # "css": [], + # "images": [], + # "js": [], + # "test": [], + # "demo": [], +} diff --git a/partner_contact_birthplace/i18n/fr.po b/partner_contact_birthplace/i18n/fr.po new file mode 100644 index 0000000..34ce731 --- /dev/null +++ b/partner_contact_birthplace/i18n/fr.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthplace +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0-20230613\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-05-27 20:05+0000\n" +"PO-Revision-Date: 2024-05-27 20:05+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: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birthplace +msgid "Birth place" +msgstr "Lieu de naissance" + +#. module: partner_contact_birthplace +#: model:ir.model,name:partner_contact_birthplace.model_res_partner +msgid "Contact" +msgstr "" diff --git a/partner_contact_birthplace/models/__init__.py b/partner_contact_birthplace/models/__init__.py new file mode 100644 index 0000000..3093552 --- /dev/null +++ b/partner_contact_birthplace/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +from . import res_partner diff --git a/partner_contact_birthplace/models/res_partner.py b/partner_contact_birthplace/models/res_partner.py new file mode 100644 index 0000000..5e5afee --- /dev/null +++ b/partner_contact_birthplace/models/res_partner.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + birthplace = fields.Char("Birth place") diff --git a/partner_contact_birthplace/views/res_partner.xml b/partner_contact_birthplace/views/res_partner.xml new file mode 100644 index 0000000..f5e7810 --- /dev/null +++ b/partner_contact_birthplace/views/res_partner.xml @@ -0,0 +1,27 @@ + + + + + + res.partner.form.inherit Birth place + res.partner + + 18 + + + + + + + + + + + + + + + + + + \ No newline at end of file