From 3ebfcb1c854fbd7c1ab7027dd7f34b196b3da944 Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Tue, 7 Feb 2017 22:26:23 +0100 Subject: [PATCH] [FIX] minor typo --- partner_contact_in_several_companies/models/ir_actions.py | 2 +- partner_contact_in_several_companies/models/res_partner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/partner_contact_in_several_companies/models/ir_actions.py b/partner_contact_in_several_companies/models/ir_actions.py index d36c5e07e..0608ca9e7 100644 --- a/partner_contact_in_several_companies/models/ir_actions.py +++ b/partner_contact_in_several_companies/models/ir_actions.py @@ -11,7 +11,7 @@ class IRActionsWindow(models.Model): def read(self, fields=None, context=None, load='_classic_read'): actions = super(IRActionsWindow, self).read(fields=fields, load=load) for action in actions: - if action.get('res_model', '') == u'res.partner': + if action.get('res_model', '') == 'res.partner': # By default, only show standalone contact action_context = action.get('context', '{}') or '{}' if 'search_show_all_positions' not in action_context: diff --git a/partner_contact_in_several_companies/models/res_partner.py b/partner_contact_in_several_companies/models/res_partner.py index 77ad64074..36e6acea4 100644 --- a/partner_contact_in_several_companies/models/res_partner.py +++ b/partner_contact_in_several_companies/models/res_partner.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import fields, models, _, api +from odoo import api, fields, models, _ from odoo.osv import expression