att_file = fields.Binary(string='Attach File')
name="att_file" widget="binary" options="{'accept': '.pdf, image/*'}" filename="name" string="Attachment"/>
This is my Html code is any one can help me to specify the file input type.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
att_file = fields.Binary(string='Attach File')
name="att_file" widget="binary" options="{'accept': '.pdf, image/*'}" filename="name" string="Attachment"/>
This is my Html code is any one can help me to specify the file input type.
Hi,
Along with the field definition you can specify as follows:
options="{'accepted_file_extensions': '.pdf'}"
Sample:
field name="worksheet_document" string="Document" options="{'accepted_file_extensions': '.pdf'}"
Thanks
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
sept 23
|
9341 | ||
|
1
feb 22
|
6283 | ||
|
2
jul 19
|
2575 | ||
|
0
nov 18
|
2627 | ||
Custom float field auto rounding?
Resuelto
|
|
4
sept 18
|
4536 |