From 9fc4e5ab8d574ded7ce092f30f03a838ab2622fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=A7al=20Isern?= Date: Tue, 1 Sep 2020 12:20:51 +0200 Subject: [PATCH] [IMP] partner_contact_nationality: black, isort, prettier --- partner_contact_nationality/__manifest__.py | 20 +++++------ .../models/res_partner.py | 2 +- .../views/res_partner.xml | 33 ++++++++++--------- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/partner_contact_nationality/__manifest__.py b/partner_contact_nationality/__manifest__.py index 57eb0f50e..81e6efd91 100644 --- a/partner_contact_nationality/__manifest__.py +++ b/partner_contact_nationality/__manifest__.py @@ -9,18 +9,14 @@ "website": "https://odoo-community.org/", "author": "Grupo ESOC, Odoo Community Association (OCA)", "contributors": [ - 'Jairo Llopis ', - 'Richard deMeester ', - 'Denis Roussel ', + "Jairo Llopis ", + "Richard deMeester ", + "Denis Roussel ", ], "license": "AGPL-3", - 'application': False, - 'installable': True, - 'auto_install': False, - "depends": [ - "partner_contact_personal_information_page", - ], - "data": [ - "views/res_partner.xml", - ], + "application": False, + "installable": True, + "auto_install": False, + "depends": ["partner_contact_personal_information_page"], + "data": ["views/res_partner.xml"], } diff --git a/partner_contact_nationality/models/res_partner.py b/partner_contact_nationality/models/res_partner.py index 2e1260a2c..3e4d71612 100644 --- a/partner_contact_nationality/models/res_partner.py +++ b/partner_contact_nationality/models/res_partner.py @@ -5,6 +5,6 @@ from odoo import fields, models class ResPartner(models.Model): - _inherit = 'res.partner' + _inherit = "res.partner" nationality_id = fields.Many2one("res.country", "Nationality") diff --git a/partner_contact_nationality/views/res_partner.xml b/partner_contact_nationality/views/res_partner.xml index d5c00fafd..da3629299 100644 --- a/partner_contact_nationality/views/res_partner.xml +++ b/partner_contact_nationality/views/res_partner.xml @@ -1,17 +1,20 @@ - + - - - Partner nationality: personal info - res.partner - - - - - - - - - - + + Partner nationality: personal info + res.partner + + + + + + + + +