From f0548c755b4aa16d70961cd32191445d3db4a1b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9lie=20Dieudonn=C3=A9?= <107679666+amdi-odoo@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:29:25 +0100 Subject: [PATCH] [IMP] documentation: update many2many_binary widget The widget now also display an image preview for the files of MIME type "image". A new option 'reverse_order' has been added to visually reverse the files order. --- content/developer/reference/frontend/javascript_reference.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/developer/reference/frontend/javascript_reference.rst b/content/developer/reference/frontend/javascript_reference.rst index 40c40cfa7e..a6bf9503ff 100644 --- a/content/developer/reference/frontend/javascript_reference.rst +++ b/content/developer/reference/frontend/javascript_reference.rst @@ -1202,6 +1202,8 @@ Many2many (`many2many`) Many2many Binary File (`many2many_binary`) This widget helps the user to upload or delete one or more files at the same time. + An image preview is available for files with the MIME type "image". + Note that this widget is specific to the model `ir.attachment`. - Supported field types: `many2many` @@ -1212,6 +1214,8 @@ Many2many Binary File (`many2many_binary`) (cf: ``accept`` attribute on ``) + - `reverse_order`: set to `true` to add new files at the top of the list (default: `false`, new files are added at the bottom). + Many2many Tags (`many2many_tags`) Display a `many2many` field as a list of tags.