diff --git a/partner_contact_birthplace/__manifest__.py b/partner_contact_birthplace/__manifest__.py index 98389da..95a3c40 100644 --- a/partner_contact_birthplace/__manifest__.py +++ b/partner_contact_birthplace/__manifest__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). { - "name": "Contact's birth place", + "name": "Contact birth place", "version": "16.0.1.0.0", "summary": "Module summary", "description": """ diff --git a/partner_contact_birthplace/i18n/fr.po b/partner_contact_birthplace/i18n/fr.po index 34ce731..dee4e0f 100644 --- a/partner_contact_birthplace/i18n/fr.po +++ b/partner_contact_birthplace/i18n/fr.po @@ -6,8 +6,8 @@ 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" +"POT-Creation-Date: 2024-05-29 12:58+0000\n" +"PO-Revision-Date: 2024-05-29 12:58+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -15,6 +15,12 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birthplace_country_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birthplace_country_id +msgid "Birth country" +msgstr "Pays de naissance" + #. 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 diff --git a/partner_contact_birthplace/models/res_partner.py b/partner_contact_birthplace/models/res_partner.py index 5e5afee..8bc7ff2 100644 --- a/partner_contact_birthplace/models/res_partner.py +++ b/partner_contact_birthplace/models/res_partner.py @@ -7,3 +7,7 @@ class ResPartner(models.Model): _inherit = "res.partner" birthplace = fields.Char("Birth place") + birthplace_country_id = fields.Many2one( + comodel_name="res.country", + string="Birth country", + ) diff --git a/partner_contact_birthplace/views/res_partner.xml b/partner_contact_birthplace/views/res_partner.xml index f5e7810..68e8fdc 100644 --- a/partner_contact_birthplace/views/res_partner.xml +++ b/partner_contact_birthplace/views/res_partner.xml @@ -3,7 +3,7 @@ - res.partner.form.inherit Birth place + res.partner.form.inherit.birthplace res.partner 18 @@ -19,7 +19,11 @@ - +