Browse Source

[IMP] partner_multi_relation: black, isort

14.0
Raf Ven 4 years ago
parent
commit
5c2064739e
  1. 2
      partner_multi_relation/__manifest__.py
  2. 6
      partner_multi_relation/models/res_partner_relation_all.py

2
partner_multi_relation/__manifest__.py

@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Partner Relations",
"version": "13.0.1.1.0",
"version": "14.0.1.0.0",
"author": "Therp BV,Camptocamp,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/partner-contact",
"complexity": "normal",

6
partner_multi_relation/models/res_partner_relation_all.py

@ -399,8 +399,7 @@ CREATE OR REPLACE VIEW %%(table)s AS
@api.model
def _get_type_selection_from_vals(self, vals):
"""Get type_selection_id straight from vals or compute from type_id.
"""
"""Get type_selection_id straight from vals or compute from type_id."""
type_selection_id = vals.get("type_selection_id", False)
if not type_selection_id:
type_id = vals.get("type_id", False)
@ -469,8 +468,7 @@ CREATE OR REPLACE VIEW %%(table)s AS
base_resource.unlink()
def unlink(self):
"""For model 'res.partner.relation' call unlink on underlying model.
"""
"""For model 'res.partner.relation' call unlink on underlying model."""
for rec in self:
try:
base_resource = rec.get_base_resource()

Loading…
Cancel
Save