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
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
2
set. 23
|
9746 | ||
|
1
fev. 22
|
6733 | ||
Error group_sale_order_template (v12)
Resolvido
|
|
2
jul. 19
|
2780 | |
|
0
nov. 18
|
2791 | ||
Custom float field auto rounding?
Resolvido
|
|
4
set. 18
|
4773 |