Browse Source

[ADD] partner_contact_birthplace module

16.0
RemiFr82 6 months ago
parent
commit
939be67d94
  1. 3
      partner_contact_birthplace/__init__.py
  2. 50
      partner_contact_birthplace/__manifest__.py
  3. 27
      partner_contact_birthplace/i18n/fr.po
  4. 3
      partner_contact_birthplace/models/__init__.py
  5. 9
      partner_contact_birthplace/models/res_partner.py
  6. 27
      partner_contact_birthplace/views/res_partner.xml

3
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

50
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": [],
}

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

3
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

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

27
partner_contact_birthplace/views/res_partner.xml

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). -->
<odoo>
<record id="personal_information_form_inherit" model="ir.ui.view">
<field name="name">res.partner.form.inherit Birth place</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information" />
<field name="priority">18</field>
<field name="arch" type="xml">
<group name="personal_information_group" position="replace">
<group name="personal_information_group">
<group name="personal_information_col1">
<field name="birthdate_date" />
</group>
<group name="personal_information_col2">
<field name="age" />
</group>
</group>
</group>
<field name="birthdate_date" position="after">
<field name="birthplace" />
</field>
</field>
</record>
</odoo>
Loading…
Cancel
Save