调整上传文件名

This commit is contained in:
mgw
2025-04-22 13:16:15 +08:00
parent 666c0167d7
commit 7c2ddd8a0c
2 changed files with 3 additions and 1 deletions

View File

@@ -6,7 +6,8 @@
<field name="arch" type="xml">
<form>
<group>
<field name="file_data" widget="binary" options="{'accepted_file_extensions': '.xls,.xlsx'}"/>
<field name="file_data" widget="binary" filename="filename" options="{'accepted_file_extensions': '.xls,.xlsx'}"/>
<field name="filename" invisible="1"/>
</group>
<footer>
<button string="确认导入" name="import_data" type="object" class="btn-primary"/>