Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0] [MIG] partner_contact_birthplace: Migration to 18.0 #1903

Open
wants to merge 16 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 111 additions & 0 deletions partner_contact_birthplace/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
==========================
Partner contact birthplace
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b15d29be37a6ebf5b988b561354d8272bf0cdc1ae2e87c4424c6329fe9a8a07c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/18.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-18-0/partner-contact-18-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=18.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 <https://github.com/OCA/partner-contact/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 <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_contact_birthplace%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Agile Business Group

Contributors
------------

- Simone Rubino <[email protected]>
(<<http://www.agilebg.com/>)
- Nicolò Crisafulli <[email protected]>
(<<http://www.agilebg.com/>)
- Giuseppe Borruso <[email protected]>
(<<https://www.dinamicheaziendali.it/>)

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 <https://github.com/OCA/partner-contact/tree/18.0/partner_contact_birthplace>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions partner_contact_birthplace/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
17 changes: 17 additions & 0 deletions partner_contact_birthplace/__manifest__.py
Original file line number Diff line number Diff line change
@@ -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": "18.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"],
}
49 changes: 49 additions & 0 deletions partner_contact_birthplace/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 <[email protected]>\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"

#~ msgid "Display Name"
#~ msgstr "Nom a mostrar"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Darrera modificació el"
49 changes: 49 additions & 0 deletions partner_contact_birthplace/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# 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 <[email protected]>\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"

#~ msgid "Display Name"
#~ msgstr "Mostrar Nombre"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Última Modificación el"
38 changes: 38 additions & 0 deletions partner_contact_birthplace/i18n/es_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 ""
53 changes: 53 additions & 0 deletions partner_contact_birthplace/i18n/it.po
Original file line number Diff line number Diff line change
@@ -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 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 <[email protected]>\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"

#~ msgid "Display Name"
#~ msgstr "Nome visualizzato"

#~ msgid "ID"
#~ msgstr "ID"

#~ msgid "Last Modified on"
#~ msgstr "Ultima modifica il"

#~ msgid "Partner"
#~ msgstr "Partner"
37 changes: 37 additions & 0 deletions partner_contact_birthplace/i18n/partner_contact_birthplace.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_contact_birthplace
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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 ""
3 changes: 3 additions & 0 deletions partner_contact_birthplace/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import res_partner
16 changes: 16 additions & 0 deletions partner_contact_birthplace/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -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"
)
3 changes: 3 additions & 0 deletions partner_contact_birthplace/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions partner_contact_birthplace/readme/CONFIGURE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
No configuration is needed.
3 changes: 3 additions & 0 deletions partner_contact_birthplace/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Simone Rubino \<<[email protected]>\> (\<<<http://www.agilebg.com/>\>)
- Nicolò Crisafulli \<<[email protected]>\> (\<<<http://www.agilebg.com/>\>)
- Giuseppe Borruso \<<[email protected]>\> (\<<<https://www.dinamicheaziendali.it/>\>)
2 changes: 2 additions & 0 deletions partner_contact_birthplace/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -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.
Loading
Loading