[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:
parent
2ef3cdb006
commit
f055ec1754
2 changed files with 11 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue