Files
gzth/yuthon_property_approval/views/property_tenant_checkout_views.xml
T
2026-09-18 16:47:42 +08:00

139 lines
5.9 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- 列表视图 -->
<record id="view_property_tenant_checkout_tree" model="ir.ui.view">
<field name="name">property.tenant.checkout.tree</field>
<field name="model">property.tenant.checkout</field>
<field name="arch" type="xml">
<tree string="租户退租表">
<field name="name"/>
<field name="code"/>
<field name="tenant_unit"/>
<field name="company_name"/>
<field name="checkout_deadline"/>
</tree>
</field>
</record>
<!-- 表单视图 -->
<record id="view_property_tenant_checkout_form" model="ir.ui.view">
<field name="name">property.tenant.checkout.form</field>
<field name="model">property.tenant.checkout</field>
<field name="arch" type="xml">
<form string="租户退租表" create="0">
<header>
<!-- 打印按钮:流程结束后才允许打印 -->
<button name="action_print_tenant_checkout" string="打印" type="object" class="btn-primary"
invisible="not work_end"/>
</header>
<sheet>
<!-- 流水号 / 紧急度 / 标题 -->
<group col="3">
<group>
<field name="code" string="流水号" readonly="1"/>
</group>
<group>
<field name="urgency_level" readonly="1"/>
</group>
<group/>
</group>
<div class="col-12 text-center">
<h1>
<field name="name_title" readonly="1"/>
</h1>
</div>
<!-- 审批事项 -->
<group string="审批事项">
<group>
<field name="state" invisible="1"/>
<field name="work_end" invisible="1"/>
<field name="name" required="1"/>
<field name="company_id" invisible="1"/>
<field name="department_id" invisible="1"/>
</group>
</group>
<!-- 表头信息 -->
<group string="表头信息" col="3">
<group>
<field name="tenant_unit"/>
<field name="company_name"/>
</group>
<group>
<field name="checkout_deadline"/>
<field name="handler"/>
</group>
<group/>
</group>
<!-- 客户服务中心 -->
<group string="客户服务中心" col="3">
<group>
<field name="contract_handling"/>
<field name="contract_expiry"/>
<field name="other_note" widget="text"/>
<field name="air_conditioner"/>
<field name="light_tube"/>
</group>
<group>
<field name="interior_decor"/>
<field name="other_equipment"/>
<field name="retrieve_keys"/>
<field name="electric_meter"/>
<field name="engineering_group"/>
</group>
<group>
<field name="center_person_in_charge"/>
<field name="inspection_date"/>
</group>
</group>
<!-- 租户签字 -->
<group string="租户签字确认" col="2">
<group>
<field name="tenant_sign_date"/>
</group>
<group>
<!-- 电子签名控件:手绘/打字/上传三合一;full_name 自动带出公司名称作为打字签名默认值 -->
<field name="tenant_signature" widget="signature" options="{'full_name': 'company_name'}"/>
</group>
</group>
<!-- 财务部 -->
<group string="财务部" col="3">
<group>
<field name="rent_fee"/>
<field name="management_fee"/>
<field name="phone_fee"/>
<field name="utility_fee"/>
</group>
<group>
<field name="other_fee"/>
<field name="settlement"/>
<field name="finance_handler"/>
<field name="finance_reviewer"/>
</group>
<group>
<field name="finance_person_in_charge"/>
<field name="finance_date"/>
</group>
</group>
<!-- 附件 -->
<group>
<field name="document_ids" widget="preview_many2many"/>
</group>
</sheet>
</form>
</field>
</record>
<!-- 动作 -->
<record id="property_tenant_checkout_action" model="ir.actions.act_window">
<field name="name">租户退租表</field>
<field name="res_model">property.tenant.checkout</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>