添加功能
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<field name="contract_id"/>
|
||||
<field name="tenant_unit"/>
|
||||
<field name="state"/>
|
||||
<field name="checkout_deadline"/>
|
||||
<field name="early_quitting_date"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -53,43 +53,61 @@
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<!-- 已关联合同 · 关键信息自动带出(各节点均可见,只读参考) -->
|
||||
<group string="已关联合同 · 关键信息自动带出" col="3">
|
||||
<!-- 已关联合同 · 关键信息自动带出(仅关联合同后显示,直接展开,全部只读) -->
|
||||
<group string="已关联合同 · 关键信息自动带出" col="3" invisible="not contract_id">
|
||||
<group>
|
||||
<field name="lessee_id"/>
|
||||
<field name="tenant_unit"/>
|
||||
<field name="rent_address"/>
|
||||
<field name="lessee_id" readonly="1"/>
|
||||
<field name="tenant_unit" readonly="1"/>
|
||||
<field name="rent_address" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="lessor_id"/>
|
||||
<field name="contract_code"/>
|
||||
<field name="contract_term_start"/>
|
||||
<field name="lessor_id" readonly="1"/>
|
||||
<field name="contract_term_start" readonly="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="contract_term_end"/>
|
||||
<field name="deposit_amount"/>
|
||||
<field name="contract_term_end" readonly="1"/>
|
||||
<field name="deposit_amount" readonly="1"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<!-- ===== 节点一:申请人(state 为空或走到「申请人」节点时显示)===== -->
|
||||
<group string="发起退租申请" invisible="state and state != '申请人'" col="2">
|
||||
<group string="发起退租申请" invisible="state and state != '申请人'" col="1">
|
||||
<group>
|
||||
<!-- 申请人:默认自动带出当前登录用户,可手选他人代提交;流程监控的「创建人」取系统 create_uid,与此字段无关 -->
|
||||
<field name="user_id" string="申请人" required="1"/>
|
||||
<field name="contract_id" options="{'no_create': True}" required="1"/>
|
||||
<field name="checkout_deadline" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="contract_handle_type" required="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="checkout_reason" widget="text"/>
|
||||
</group>
|
||||
<group>
|
||||
<!-- 退租原因(兼合同办理方式):驱动终止逻辑与表单显隐 -->
|
||||
<field name="early_reason" required="1" widget="radio"/>
|
||||
<!-- 退租日期:退租截止日期与退租日期统一使用此字段,所有退租原因均显示 -->
|
||||
<field name="early_quitting_date" required="1"/>
|
||||
<!-- 退租说明:进入终止/押金处理逻辑 -->
|
||||
<field name="early_explain" widget="text"/>
|
||||
<!-- 其��(补充说明) -->
|
||||
<field name="other_note" widget="text"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<!-- 应收明细(仅「协商一致」且已填退租日期时显示) -->
|
||||
<div invisible="early_reason != 'agree' or not early_quitting_date">
|
||||
<notebook>
|
||||
<page string="应收明细">
|
||||
<field name="receivables_ids" string=" ">
|
||||
<tree editable="bottom">
|
||||
<field name="checkout_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>
|
||||
</div>
|
||||
|
||||
<!-- ===== 节点二:工程组(工程组检查 + 租户签字,同一节点)===== -->
|
||||
<group string="工程组检查与确认" invisible="state not in ['工程组']" col="1">
|
||||
<group>
|
||||
@@ -140,6 +158,11 @@
|
||||
</field>
|
||||
<field name="total_fee" readonly="1"/>
|
||||
<field name="deposit_treatment"/>
|
||||
<field name="deposit" readonly="1"/>
|
||||
<field name="refund_amount" invisible="deposit_treatment != 'part_refund'"/>
|
||||
<field name="forfeit" readonly="1" invisible="deposit_treatment != 'part_refund'"/>
|
||||
<field name="total_receivables" readonly="1" invisible="deposit_treatment != 'part_refund'"/>
|
||||
<field name="early_explain" widget="text" readonly="1"/>
|
||||
</group>
|
||||
<group col="2">
|
||||
<group>
|
||||
|
||||
Reference in New Issue
Block a user