summaryrefslogtreecommitdiff
path: root/doc/reference/javascript_reference.rst
diff options
context:
space:
mode:
authorMaxLarue <mla@odoo.com>2019-07-26 13:43:30 +0000
committerjem-odoo <jem@openerp.com>2019-08-19 06:40:39 +0000
commit9b8d7259fe20b54c1adb29b1e7248c1c7ad289af (patch)
treeac441ffad0dda778522b6bd6a2880fe3017e6a8f /doc/reference/javascript_reference.rst
parent279d32beabf4a37d439d74cfb2294bc249c4c81c (diff)
[IMP] web_gantt: allow to show thumbnails on gantt
For some fields (especially employees) it is nice to see a picture of the model on the gantt row in order to quicly identify which record is concerned. This is obvious for employees where we display their avatar picture but might be handy for other models as well. This commit introduces this functionality. In order to activate it you should declare a avatars attribute on the gantt arch. It is a python dict which keys are the fields name for which a thumbnail should be displayed (ie: 'employee_id') and the values are the fields on that model that hold the image (ie: 'image_small). If none is defined or the row isn't currently grouped by this field, nothing is displayed. NB: it is expected that the field name (key) is a relational field to another model which has a *image* field. related task 2009563, 2000719, 2024216
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions