Browse Source

Merge pull request #2 from TheCloneMaster/patch-1

Update base_contact.py
pull/4/merge
Pedro M. Baeza 11 years ago
parent
commit
bb7e43dada
  1. 3
      base_contact/base_contact.py

3
base_contact/base_contact.py

@ -59,8 +59,7 @@ class res_partner(orm.Model):
Keeping it in context can result in unexpected behaviour (ex: reading
one2many might return wrong result - i.e with "attached contact" removed
even if it's directly linked to a company). """
if context is None:
context = {}
context = dict(context or {})
if mode != 'search':
context.pop('search_show_all_positions', None)
return context

Loading…
Cancel
Save