限制可上传文件类型
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group>
|
||||
<field name="file_data"/>
|
||||
<field name="file_data" widget="binary" options="{'accepted_file_extensions': '.xlsx'}"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button string="确认导入" name="import_data" type="object" class="btn-primary"/>
|
||||
|
||||
Reference in New Issue
Block a user