[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
This commit is contained in:
Aaron Bohy
2020-05-05 10:05:12 +00:00
parent 4f8860e503
commit df4693e7ff
7 changed files with 175 additions and 1 deletions
+9
View File
@@ -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.