21 lines
998 B
XML
21 lines
998 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_upload_file_wizard_form" model="ir.ui.view">
|
|
<field name="name">ir.attachment.wizard.form</field>
|
|
<field name="model">ir.attachment.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="上传文件">
|
|
<group>
|
|
<field name="attachment" widget="binary" filename="filename" options="{'accepted_file_extensions': '.pdf,.doc,.docx,.jpg,.jpeg,.png'}"/>
|
|
<field name="filename" invisible="1"/>
|
|
<field name="res_model" invisible="1"/>
|
|
<field name="res_id" invisible="1"/>
|
|
</group>
|
|
<footer>
|
|
<button name="action_upload_file" string="确认上传" type="object" class="btn-primary"/>
|
|
<button string="取消" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo> |