diff options
Diffstat (limited to 'doc/reference/javascript_reference.rst')
| -rw-r--r-- | doc/reference/javascript_reference.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/reference/javascript_reference.rst b/doc/reference/javascript_reference.rst index 49ab37cf2e0..bc8b949c80f 100644 --- a/doc/reference/javascript_reference.rst +++ b/doc/reference/javascript_reference.rst @@ -1777,6 +1777,9 @@ order. option is useful to inform the web client that the default field name is not the name of the current field, but the name of another field. + - accepted_file_extensions: the file extension the user can pick from the file input dialog box (default value is 'image/*') + (cf: ``accept`` attribute on <input type="file"/>) + .. code-block:: xml <field name="image" widget='image' options='{"preview_image":"image_128"}'/> @@ -1786,6 +1789,11 @@ order. - Supported field types: *binary* + Options: + + - accepted_file_extensions: the file extension the user can pick from the file input dialog box + (cf: ``accept`` attribute on <input type="file"/>) + Attribute: - filename: saving a binary file will lose its file name, since it only @@ -2117,6 +2125,10 @@ Relational fields - Supported field types: *many2many* + Options: + - accepted_file_extensions: the file extension the user can pick from the file input dialog box + (cf: ``accept`` attribute on <input type="file"/>) + - many2many_tags (FieldMany2ManyTags) Display many2many as a list of tags. |
