Browse Source

[FIX] minor typo

pull/347/head
Nicolas JEUDY 8 years ago
parent
commit
3ebfcb1c85
  1. 2
      partner_contact_in_several_companies/models/ir_actions.py
  2. 2
      partner_contact_in_several_companies/models/res_partner.py

2
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:

2
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

Loading…
Cancel
Save