Browse Source

[IMP] partner_contact_address_default: black, isort, prettier

14.0
Zar21 4 years ago
parent
commit
f0bf6a86ad
  1. 6
      partner_contact_address_default/models/res_partner.py
  2. 1
      setup/partner_contact_address_default/odoo/addons/partner_contact_address_default
  3. 6
      setup/partner_contact_address_default/setup.py

6
partner_contact_address_default/models/res_partner.py

@ -8,10 +8,12 @@ class ResPartner(models.Model):
_inherit = "res.partner" _inherit = "res.partner"
partner_delivery_id = fields.Many2one( partner_delivery_id = fields.Many2one(
comodel_name="res.partner", string="Shipping address",
comodel_name="res.partner",
string="Shipping address",
) )
partner_invoice_id = fields.Many2one( 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): def get_address_default_type(self):

1
setup/partner_contact_address_default/odoo/addons/partner_contact_address_default

@ -0,0 +1 @@
../../../../partner_contact_address_default

6
setup/partner_contact_address_default/setup.py

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
Loading…
Cancel
Save