Files
gzth/yuthon_property_approval/views/property_lease_renewal.xml
T
2026-01-13 17:48:53 +08:00

153 lines
7.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_property_lease_renewal_tree" model="ir.ui.view">
<field name="name">property.lease.renewal.tree</field>
<field name="model">property.lease.renewal</field>
<field name="arch" type="xml">
<tree string="租赁变更审批">
<field name="name"/>
<field name="code"/>
<field name="renewal_type"/>
<field name="lessee_id"/>
</tree>
</field>
</record>
<record id="view_property_lease_renewal_form" model="ir.ui.view">
<field name="name">property.lease.renewal.form</field>
<field name="model">property.lease.renewal</field>
<field name="arch" type="xml">
<form string="租赁变更审批" create="0">
<sheet>
<widget name="web_ribbon" title="普件" bg_color="text-bg-success"
invisible="urgency_level != 'normal'"/>
<widget name="web_ribbon" title="急件" bg_color="text-bg-warning"
invisible="urgency_level != 'urgent'"/>
<widget name="web_ribbon" title="特急" bg_color="text-bg-danger"
invisible="urgency_level != 'emergency'"/>
<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="审批事项">
<field name="is_back" invisible="1"/>
<field name="name" required="1"/>
<field name="renewal_type" widget="radio"/>
<field name="company_id" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="work_end" invisible="1"/>
</group>
<group string="原租赁合同信息" col="3">
<group>
<field name="hide" invisible="1"/>
<field name="lessee_id" invisible="hide"/>
<field name="display_name" invisible="not hide"/>
<field name="cycle_dict"/>
</group>
<group>
<field name="contract_id"/>
<label for="original_start_date"/>
<div class="d-inline-flex w-100">
<field name="original_start_date" class="me-2" style="max-width: 7rem;"
string="合约起止"/>至
<field name="original_end_date" class="me-2" style="max-width: 7rem;"
force_save="1"/>
</div>
</group>
<group>
<field name="monthly_rent"/>
<field name="property_name"/>
</group>
</group>
<group string="变更信息" col="3">
<group>
<field name="early_quitting_date" invisible="renewal_type != 'early_checkout'"/>
<field name="new_lessee_id" invisible="renewal_type != 'lease'"/>
<field name="fee" invisible="renewal_type != 'lease'"/>
</group>
<group>
<field name="entity_type" invisible="renewal_type != 'lease'"/>
<field name="contact" invisible="renewal_type != 'lease'"/>
</group>
<group>
<field name="card" invisible="renewal_type != 'lease'"/>
<field name="phone" invisible="renewal_type != 'lease'"/>
</group>
</group>
<group>
<field name="reason" invisible="renewal_type != 'lease'"/>
<field name="effective_date" invisible="renewal_type != 'lease'"/>
<field name="early_reason" invisible="renewal_type != 'early_checkout'"/>
<field name="deposit" invisible="renewal_type != 'early_checkout'"/>
<field name="is_full_refund" invisible="renewal_type != 'early_checkout'"/>
</group>
<group col="4">
<group>
<field name="refund_amount" invisible="is_full_refund"/>
</group>
<group>
<field name="refund_remake" invisible="not refund_amount"/>
</group>
<group/>
<group/>
</group>
<group col="4">
<group>
<field name="balance" invisible="is_full_refund"/>
</group>
<group>
<field name="balance_remake" invisible="not balance"/>
</group>
<group/>
<group/>
</group>
<group col="4">
<group>
<field name="total_receivables" invisible="is_full_refund"/>
</group>
<group>
<field name="total_remake" invisible="not total_receivables"/>
</group>
<group/>
<group/>
</group>
<group>
<field name="early_explain" invisible="renewal_type != 'early_checkout'"/>
<field name="document_ids" widget="preview_many2many"/>
</group>
<notebook>
<page string="应收明细" invisible="renewal_type != 'early_checkout'">
<field name="receivables_ids" string=" ">
<tree editable="bottom">
<field name="renewal_id" column_invisible="1"/>
<field name="receivable_id" column_invisible="1"/>
<field name="management_type_id"/>
<field name="due_date"/>
<field name="original_amount"/>
<field name="reduction_amount"/>
<field name="refund_amount"/>
<field name="is_reconciliation"/>
<field name="void"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="property_lease_renewal_action" model="ir.actions.act_window">
<field name="name">租赁变更审批</field>
<field name="res_model">property.lease.renewal</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>