From f0bf6a86adb946dd16b86303ca2c35cce3b32709 Mon Sep 17 00:00:00 2001 From: Zar21 Date: Thu, 18 Feb 2021 13:32:17 +0100 Subject: [PATCH] [IMP] partner_contact_address_default: black, isort, prettier --- partner_contact_address_default/models/res_partner.py | 6 ++++-- .../odoo/addons/partner_contact_address_default | 1 + setup/partner_contact_address_default/setup.py | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 120000 setup/partner_contact_address_default/odoo/addons/partner_contact_address_default create mode 100644 setup/partner_contact_address_default/setup.py diff --git a/partner_contact_address_default/models/res_partner.py b/partner_contact_address_default/models/res_partner.py index 17f226ac0..8da4e0423 100644 --- a/partner_contact_address_default/models/res_partner.py +++ b/partner_contact_address_default/models/res_partner.py @@ -8,10 +8,12 @@ class ResPartner(models.Model): _inherit = "res.partner" partner_delivery_id = fields.Many2one( - comodel_name="res.partner", string="Shipping address", + comodel_name="res.partner", + string="Shipping address", ) partner_invoice_id = fields.Many2one( - comodel_name="res.partner", string="Invoice address", + comodel_name="res.partner", + string="Invoice address", ) def get_address_default_type(self): diff --git a/setup/partner_contact_address_default/odoo/addons/partner_contact_address_default b/setup/partner_contact_address_default/odoo/addons/partner_contact_address_default new file mode 120000 index 000000000..716d652d1 --- /dev/null +++ b/setup/partner_contact_address_default/odoo/addons/partner_contact_address_default @@ -0,0 +1 @@ +../../../../partner_contact_address_default \ No newline at end of file diff --git a/setup/partner_contact_address_default/setup.py b/setup/partner_contact_address_default/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_contact_address_default/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)