-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | ||
:target: https://www.gnu.org/licenses/agpl | ||
:alt: License: AGPL-3 | ||
|
||
========================== | ||
Partner contact birthplace | ||
========================== | ||
|
||
This module allows to define a birthplace for partners. | ||
|
||
Usage | ||
===== | ||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/134/10.0 | ||
|
||
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 smash it by providing detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Images | ||
------ | ||
|
||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. | ||
|
||
Contributors | ||
------------ | ||
|
||
* Simone Rubino <simone.rubino@agilebg.com> (www.agilebg.com) | ||
* Nicolò Crisafulli <nicolo.crisafulli@agilebg.com> (www.agilebg.com) | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Maintainer | ||
---------- | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
This module is maintained by the OCA. | ||
|
||
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. | ||
|
||
To contribute to this module, please visit https://odoo-community.org. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2018 Simone Rubino - Agile Business Group | ||
# Copyright 2019 Nicolò Crisafulli - Agile Business Group | ||
# 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': '12.0.1.0.0', | ||
'category': 'Customer Relationship Management', | ||
'website': 'https://github.com/OCA/partner-contact/tree/12.0/' | ||
'partner_contact_birthplace', | ||
'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' | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# 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: 2018-05-28 12:58+0000\n" | ||
"Last-Translator: Simone Rubino <simone.rubino@agilebg.com>\n" | ||
"Language-Team: \n" | ||
"Language: \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 "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 "Partner" | ||
msgstr "Partner" |
38 changes: 38 additions & 0 deletions
38
partner_contact_birthplace/i18n/partner_contact_birthplace.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 10.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 "Partner" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import res_partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# 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') |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2018 Simone Rubino - Agile Business Group | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
|
||
<odoo> | ||
<record id="view_personal_information_birthplace" model="ir.ui.view"> | ||
<field name="name">Birthplace field</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="partner_contact_personal_information_page.personal_information"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//group[@name='personal_information_group']"> | ||
<field name="birth_city"/> | ||
<field name="birth_state_id"/> | ||
<field name="birth_country_id"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |