diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index 62d12ef20ee..aa09e15538a 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -2293,7 +2293,8 @@ class BaseModel(object): if view_type == 'tree' or not action[2].get('multi')] resprint = [clean(print_) for print_ in resprint if view_type == 'tree' or not print_[2].get('multi')] - resrelate = map(lambda x: x[2], resrelate) + resrelate = [clean(action) for action in resrelate + if (action[2].get('multi') and view_type == 'tree') or (not action[2].get('multi') and view_type == 'form')] for x in itertools.chain(resprint, resaction, resrelate): x['string'] = x['name']