diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-04-29 07:21:42 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2020-05-05 10:05:12 +0000 |
| commit | 59641325c7eb1d41f898785d7b1bdd6db7c10ee8 (patch) | |
| tree | 39b8535f8312337e71078bd9c22f5e675300ccdd /doc/reference | |
| parent | e63ffeab5aadc69bdb5bc4f25238f9138055d3ed (diff) | |
[IMP] mail: add Many2OneAvatarUser field widget
This widget is an extension of Many2OneAvatar, designed for
many2one fields pointing to the 'res.users' model, or a model having
itself a many2one field pointing to 'res.partner'.
With this widget, when the avatar is clicked, we open a DM chat
window with the corresponding partner. If the user clicked on itself,
we open a blank chat window for the sake of consistency.
In kanban views, this widget only displays the avatar.
Part of task 2195254
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 433409acd5e..e7f350ee01c 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -2148,6 +2148,13 @@ Relational fields - Supported field types: *many2one* +- many2one_avatar_user (Many2OneAvatarUser) + This widget is a specialization of the Many2OneAvatar. When the avatar is + clicked, we open a chat window with the corresponding user. This widget can + only be set on many2one fields pointing to the 'res.users' model. + + - Supported field types: *many2one* (pointing to 'res.users') + - kanban.many2one (KanbanFieldMany2One) Default widget for many2one fields (in kanban view). We need to disable all editing in kanban views. |
