From df4693e7ffe8082335355b9a7c573d1038547f89 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Wed, 29 Apr 2020 07:21:38 +0000 Subject: [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 --- doc/reference/javascript_reference.rst | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/reference/javascript_reference.rst') 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. -- cgit v1.2.3