diff --git a/partner_contact_birthplace/README.rst b/partner_contact_birthplace/README.rst new file mode 100644 index 000000000000..004aa85a119a --- /dev/null +++ b/partner_contact_birthplace/README.rst @@ -0,0 +1,111 @@ +========================== +Partner contact birthplace +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:1f12d7dce8d1f007b7bae35d138c77da11d13fe87603e8122c3bf6aabcd9ef2a + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github + :target: https://github.com/OCA/partner-contact/tree/17.0/partner_contact_birthplace + :alt: OCA/partner-contact +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-partner_contact_birthplace + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of Odoo to support setting a +bithplace city and allows you to benefit of a clearer API and UI. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +To install this module, you need to: + +- Install the OCA repository 'partner_contact' +- Update your modules list. +- Search and install this module. + +Configuration +============= + +No configuration is needed. + +Usage +===== + +To use this module, you need to: + +- Edit or create a partner. +- Ensure it is **not** a company. +- Go to the Personal Information sheet. +- Set the birthplace there. + +For further information, please visit: + +- https://www.odoo.com/forum/help-1 +- https://github.com/OCA/partner-contact/ + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Agile Business Group + +Contributors +------------ + +- Simone Rubino + (<) +- Nicolò Crisafulli + (<) +- Giuseppe Borruso + (<) + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/partner-contact `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_contact_birthplace/__init__.py b/partner_contact_birthplace/__init__.py new file mode 100644 index 000000000000..31660d6a9650 --- /dev/null +++ b/partner_contact_birthplace/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from . import models diff --git a/partner_contact_birthplace/__manifest__.py b/partner_contact_birthplace/__manifest__.py new file mode 100644 index 000000000000..f94974a1bea5 --- /dev/null +++ b/partner_contact_birthplace/__manifest__.py @@ -0,0 +1,17 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Partner contact birthplace", + "summary": "This module allows to define a birthplace for partners.", + "version": "17.0.1.0.0", + "category": "Customer Relationship Management", + "website": "https://github.com/OCA/partner-contact", + "author": "Agile Business Group, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "partner_contact_personal_information_page", + ], + "data": ["views/res_partner.xml"], +} diff --git a/partner_contact_birthplace/i18n/ca.po b/partner_contact_birthplace/i18n/ca.po new file mode 100644 index 000000000000..86e92333cb51 --- /dev/null +++ b/partner_contact_birthplace/i18n/ca.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthplace +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-05-11 01:05+0000\n" +"Last-Translator: pere-aquarian \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_city +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_city +msgid "Birth City" +msgstr "Ciutat de naixement" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_country_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_country_id +msgid "Birth country" +msgstr "País de naixement" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_state_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_state_id +msgid "Birth state" +msgstr "Província/estat de naixement" + +#. module: partner_contact_birthplace +#: model:ir.model,name:partner_contact_birthplace.model_res_partner +msgid "Contact" +msgstr "Contacte" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__display_name +msgid "Display Name" +msgstr "Nom a mostrar" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__id +msgid "ID" +msgstr "ID" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner____last_update +msgid "Last Modified on" +msgstr "Darrera modificació el" diff --git a/partner_contact_birthplace/i18n/es.po b/partner_contact_birthplace/i18n/es.po new file mode 100644 index 000000000000..e613735ef597 --- /dev/null +++ b/partner_contact_birthplace/i18n/es.po @@ -0,0 +1,55 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthplace +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-01-13 10:33+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_city +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_city +msgid "Birth City" +msgstr "Ciudad de Nacimiento" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_country_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_country_id +msgid "Birth country" +msgstr "País de Nacimiento" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_state_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_state_id +msgid "Birth state" +msgstr "Estado de nacimiento" + +#. module: partner_contact_birthplace +#: model:ir.model,name:partner_contact_birthplace.model_res_partner +msgid "Contact" +msgstr "Contacto" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__id +msgid "ID" +msgstr "ID" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" diff --git a/partner_contact_birthplace/i18n/es_ES.po b/partner_contact_birthplace/i18n/es_ES.po new file mode 100644 index 000000000000..23354efa39cf --- /dev/null +++ b/partner_contact_birthplace/i18n/es_ES.po @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthplace +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_city +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_city +msgid "Birth City" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_country_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_country_id +msgid "Birth country" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_state_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_state_id +msgid "Birth state" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model,name:partner_contact_birthplace.model_res_partner +msgid "Contact" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__display_name +msgid "Display Name" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__id +msgid "ID" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner____last_update +msgid "Last Modified on" +msgstr "" diff --git a/partner_contact_birthplace/i18n/it.po b/partner_contact_birthplace/i18n/it.po new file mode 100644 index 000000000000..4f265c9e64cd --- /dev/null +++ b/partner_contact_birthplace/i18n/it.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthplace +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-28 12:58+0000\n" +"PO-Revision-Date: 2024-01-29 17:34+0000\n" +"Last-Translator: mymage \n" +"Language-Team: \n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_city +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_city +msgid "Birth City" +msgstr "Città di nascita" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_country_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_country_id +msgid "Birth country" +msgstr "Stato di nascita" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_state_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_state_id +msgid "Birth state" +msgstr "Provincia di nascita" + +#. module: partner_contact_birthplace +#: model:ir.model,name:partner_contact_birthplace.model_res_partner +msgid "Contact" +msgstr "Contatto" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__id +msgid "ID" +msgstr "ID" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#~ msgid "Partner" +#~ msgstr "Partner" diff --git a/partner_contact_birthplace/i18n/partner_contact_birthplace.pot b/partner_contact_birthplace/i18n/partner_contact_birthplace.pot new file mode 100644 index 000000000000..fe33c219c8a0 --- /dev/null +++ b/partner_contact_birthplace/i18n/partner_contact_birthplace.pot @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_birthplace +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \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__birth_city +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_city +msgid "Birth City" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_country_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_country_id +msgid "Birth country" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__birth_state_id +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_users__birth_state_id +msgid "Birth state" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model,name:partner_contact_birthplace.model_res_partner +msgid "Contact" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__display_name +msgid "Display Name" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner__id +msgid "ID" +msgstr "" + +#. module: partner_contact_birthplace +#: model:ir.model.fields,field_description:partner_contact_birthplace.field_res_partner____last_update +msgid "Last Modified on" +msgstr "" diff --git a/partner_contact_birthplace/models/__init__.py b/partner_contact_birthplace/models/__init__.py new file mode 100644 index 000000000000..c6cc3b329891 --- /dev/null +++ b/partner_contact_birthplace/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +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 000000000000..4ea8a0ff077a --- /dev/null +++ b/partner_contact_birthplace/models/res_partner.py @@ -0,0 +1,16 @@ +# Copyright 2018 Simone Rubino - Agile Business Group +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResPartner(models.Model): + _inherit = "res.partner" + + birth_city = fields.Char() + birth_state_id = fields.Many2one( + comodel_name="res.country.state", string="Birth state", ondelete="restrict" + ) + birth_country_id = fields.Many2one( + comodel_name="res.country", string="Birth country", ondelete="restrict" + ) diff --git a/partner_contact_birthplace/pyproject.toml b/partner_contact_birthplace/pyproject.toml new file mode 100644 index 000000000000..4231d0cccb3d --- /dev/null +++ b/partner_contact_birthplace/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/partner_contact_birthplace/readme/CONFIGURE.md b/partner_contact_birthplace/readme/CONFIGURE.md new file mode 100644 index 000000000000..bbf71106140f --- /dev/null +++ b/partner_contact_birthplace/readme/CONFIGURE.md @@ -0,0 +1 @@ +No configuration is needed. diff --git a/partner_contact_birthplace/readme/CONTRIBUTORS.md b/partner_contact_birthplace/readme/CONTRIBUTORS.md new file mode 100644 index 000000000000..ade59a1842f6 --- /dev/null +++ b/partner_contact_birthplace/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Simone Rubino \<\> (\<<\>) +- Nicolò Crisafulli \<\> (\<<\>) +- Giuseppe Borruso \<\> (\<<\>) diff --git a/partner_contact_birthplace/readme/DESCRIPTION.md b/partner_contact_birthplace/readme/DESCRIPTION.md new file mode 100644 index 000000000000..9a88db3f8e90 --- /dev/null +++ b/partner_contact_birthplace/readme/DESCRIPTION.md @@ -0,0 +1,2 @@ +This module extends the functionality of Odoo to support setting a +bithplace city and allows you to benefit of a clearer API and UI. diff --git a/partner_contact_birthplace/readme/INSTALL.md b/partner_contact_birthplace/readme/INSTALL.md new file mode 100644 index 000000000000..fd0771ed8c98 --- /dev/null +++ b/partner_contact_birthplace/readme/INSTALL.md @@ -0,0 +1,5 @@ +To install this module, you need to: + +- Install the OCA repository 'partner_contact' +- Update your modules list. +- Search and install this module. diff --git a/partner_contact_birthplace/readme/USAGE.md b/partner_contact_birthplace/readme/USAGE.md new file mode 100644 index 000000000000..ad6a415dfb1d --- /dev/null +++ b/partner_contact_birthplace/readme/USAGE.md @@ -0,0 +1,11 @@ +To use this module, you need to: + +- Edit or create a partner. +- Ensure it is **not** a company. +- Go to the Personal Information sheet. +- Set the birthplace there. + +For further information, please visit: + +- https://www.odoo.com/forum/help-1 +- https://github.com/OCA/partner-contact/ diff --git a/partner_contact_birthplace/static/description/icon.png b/partner_contact_birthplace/static/description/icon.png new file mode 100644 index 000000000000..3a0328b516c4 Binary files /dev/null and b/partner_contact_birthplace/static/description/icon.png differ diff --git a/partner_contact_birthplace/static/description/index.html b/partner_contact_birthplace/static/description/index.html new file mode 100644 index 000000000000..b45061075362 --- /dev/null +++ b/partner_contact_birthplace/static/description/index.html @@ -0,0 +1,457 @@ + + + + + +Partner contact birthplace + + + +
+

Partner contact birthplace

+ + +

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runboat

+

This module extends the functionality of Odoo to support setting a +bithplace city and allows you to benefit of a clearer API and UI.

+

Table of contents

+ +
+

Installation

+

To install this module, you need to:

+
    +
  • Install the OCA repository ‘partner_contact’
  • +
  • Update your modules list.
  • +
  • Search and install this module.
  • +
+
+
+

Configuration

+

No configuration is needed.

+
+
+

Usage

+

To use this module, you need to:

+
    +
  • Edit or create a partner.
  • +
  • Ensure it is not a company.
  • +
  • Go to the Personal Information sheet.
  • +
  • Set the birthplace there.
  • +
+

For further information, please visit:

+ +
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Agile Business Group
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/partner-contact project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/partner_contact_birthplace/views/res_partner.xml b/partner_contact_birthplace/views/res_partner.xml new file mode 100644 index 000000000000..6a58657aeb7a --- /dev/null +++ b/partner_contact_birthplace/views/res_partner.xml @@ -0,0 +1,19 @@ + + + + + Birthplace field + res.partner + + + + + + + + + +