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
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
2
سبتمبر 23
|
9341 | ||
|
1
فبراير 22
|
6287 | ||
|
2
يوليو 19
|
2576 | ||
|
0
نوفمبر 18
|
2627 | ||
|
4
سبتمبر 18
|
4536 |