diff --git a/partner_contact_birthplace/__manifest__.py b/partner_contact_birthplace/__manifest__.py index 1992d919b..8deacc1e9 100644 --- a/partner_contact_birthplace/__manifest__.py +++ b/partner_contact_birthplace/__manifest__.py @@ -1,20 +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': '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' + "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" "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"], } diff --git a/partner_contact_birthplace/models/res_partner.py b/partner_contact_birthplace/models/res_partner.py index f8ebd74dc..4ea8a0ff0 100644 --- a/partner_contact_birthplace/models/res_partner.py +++ b/partner_contact_birthplace/models/res_partner.py @@ -5,12 +5,12 @@ from odoo import fields, models class ResPartner(models.Model): - _inherit = 'res.partner' + _inherit = "res.partner" birth_city = fields.Char() birth_state_id = fields.Many2one( - comodel_name='res.country.state', string='Birth state', - ondelete='restrict') + comodel_name="res.country.state", string="Birth state", ondelete="restrict" + ) birth_country_id = fields.Many2one( - comodel_name='res.country', string='Birth country', - ondelete='restrict') + comodel_name="res.country", string="Birth country", ondelete="restrict" + ) diff --git a/partner_contact_birthplace/views/res_partner.xml b/partner_contact_birthplace/views/res_partner.xml index 502522d52..6a58657ae 100644 --- a/partner_contact_birthplace/views/res_partner.xml +++ b/partner_contact_birthplace/views/res_partner.xml @@ -1,16 +1,18 @@ - + - Birthplace field res.partner - + - - - + + + diff --git a/setup/partner_contact_birthplace/odoo/addons/partner_contact_birthplace b/setup/partner_contact_birthplace/odoo/addons/partner_contact_birthplace new file mode 120000 index 000000000..d95407b15 --- /dev/null +++ b/setup/partner_contact_birthplace/odoo/addons/partner_contact_birthplace @@ -0,0 +1 @@ +../../../../partner_contact_birthplace \ No newline at end of file diff --git a/setup/partner_contact_birthplace/setup.py b/setup/partner_contact_birthplace/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_contact_birthplace/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)