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