[WIP] Adding PdfViewerField doc

This commit adds more documentation for fields
This commit is contained in:
luvi 2021-12-13 16:43:21 +01:00
parent c9e87afcce
commit b687f02571

View File

@ -156,6 +156,10 @@ Reference List
- `many2one`
- `many2one`
- description...
* - :ref:`PdfViewerField <frontend/fields/pdf_viewer_field>`
- `pdf_viewer`
- `binary`
- display a progress bar
* - :ref:`PercentageField <frontend/fields/percentage_field>`
- `text`
- `float`
@ -396,6 +400,33 @@ Many2OneField
- Technical name: `many2one`
- Supported types: `many2one`
.. _frontend/fields/pdf_viewer:
PdfViewerField
-----------
- Location: `@web/fields/pdf_viewer_field`
- Technical name: `pdf_viewer`
- Supported types: `binary`
Todo
It supports the following options:
.. list-table::
:widths: 20 20 60
:header-rows: 1
* - Name
- Type
- Description
.. code-block:: xml
<field name="my_field" widget="pdf_viewer" filename="Your document" options="{'accepted_file_extensions': '.dat,.bin'}" />
.. _frontend/fields/percentage_field:
PercentageField