限制可上传文件类型

This commit is contained in:
mgw
2025-03-14 13:52:54 +08:00
parent 214f45850e
commit 4200fdbf3b

View File

@@ -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"/>