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
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
2
syysk. 23
|
10843 | |||
|
1
helmik. 22
|
8216 | |||
|
Error group_sale_order_template (v12)
Ratkaistu
|
2
heinäk. 19
|
3617 | ||
|
0
marrask. 18
|
3606 | |||
|
Custom float field auto rounding?
Ratkaistu
|
4
syysk. 18
|
5699 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.