[MERGE] multi=True

bzr revid: fp@openerp.com-20121102160613-rwq05zxz5r32ul80
This commit is contained in:
Fabien Pinckaers 2012-11-02 17:06:13 +01:00
commit 1cdba81560
1 changed files with 3 additions and 1 deletions

View File

@ -2292,7 +2292,9 @@ 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)
#When multi="True" set it will display only in More of the list view
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']