[IMP]orm : improve multi tag when multi=true action display in tree and when flase action display in form

bzr revid: mma@tinyerp.com-20121019094303-p4mlf9oxlxhuvc48
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-10-19 15:13:03 +05:30
parent 5b166040b1
commit cfaff8a85a
1 changed files with 2 additions and 1 deletions

View File

@ -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']