[gen] Allow Refs with render='menus' to appear in layout 'buttons'.

This commit is contained in:
Gaetan Delannay 2015-01-20 01:03:23 +01:00
parent 34cafcdbc1
commit d9a89f7ad5
7 changed files with 68 additions and 31 deletions

View file

@ -818,6 +818,7 @@ class BaseMixin:
for field in self.getAllAppyTypes():
if pageName and (field.page.name != pageName): continue
if type and (field.type != type): continue
if not field.isRenderable(layoutType): continue
if not field.isShowable(self, layoutType): continue
res.append(field)
return res