diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-04-29 07:21:38 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-05-05 10:05:12 +0000 |
| commit | df4693e7ffe8082335355b9a7c573d1038547f89 (patch) | |
| tree | d611e954c8b1961107f5e644545d6429348c106d /doc | |
| parent | 4f8860e5038711c0da5b26584c4b72663908ddbc (diff) | |
[IMP] web: add Many2OneAvatar field widget
In readonly, this widget displays the image of the related record
next to its display_name. In edit, it behaves exactly like the
regular many2one.
Part of task 2195254
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 92c6a292ff9..433409acd5e 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -2139,6 +2139,15 @@ Relational fields - Supported field types: *many2one* +- many2one_avatar (Many2OneAvatar) + This widget is only supported on many2one fields pointing to a model which + inherits from 'image.mixin'. In readonly, it displays the image of the + related record next to its display_name. Note that the display_name isn't a + clickable link in this case. In edit, it behaves exactly like the regular + many2one. + + - Supported field types: *many2one* + - kanban.many2one (KanbanFieldMany2One) Default widget for many2one fields (in kanban view). We need to disable all editing in kanban views. |
