[gen] Bugfix: For showing a field on layout buttons, the buttons layout must explicitly be returned by the show method. [gen] Action.py: added param 'icon' allowing to specify a specific icon.

This commit is contained in:
Gaetan Delannay 2014-12-05 11:55:25 +01:00
parent 2ef3cdb006
commit f055ec1754
2 changed files with 11 additions and 7 deletions

View file

@ -353,7 +353,9 @@ class Field:
return
elif res in ('view', 'edit', 'result', 'buttons'):
return res == layoutType
return bool(res)
# For showing a field on layout "buttons", the "buttons" layout must
# explicitly be returned by the show method.
if layoutType != 'buttons': return bool(res)
def isClientVisible(self, obj):
'''This method returns True if this field is visible according to