Files
gzth/yuthon_property_approval/wizard/property_add_wizard_views.xml
2025-04-17 11:05:25 +08:00

35 lines
1.5 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="property_add_template_downloads_tian_he_action" model="ir.actions.act_url">
<field name="name">物业模板</field>
<field name="target">self</field>
<field name="url">/yuthon_property_approval/static/others/property_template.xlsx</field>
</record>
<record id="property_add_wizard_form" model="ir.ui.view">
<field name="name">新增物业合同</field>
<field name="model">property.add.wizard</field>
<field name="arch" type="xml">
<form>
<sheet>
<header>
<button name="%(property_add_template_downloads_tian_he_action)d" string="模板下载" type="action"
class="btn btn-primary"/>
</header>
<group>
<group>
<field name="excel_file" filename="excel_name"/>
<field name="excel_name" invisible="1"/>
</group>
<group>
</group>
</group>
</sheet>
<footer>
<button name="confirm" string="确认" type="object" class="oe_highlight"/>
<button string="返回" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>