Files
gzth/yuthon_property_approval/views/property_lease_contract.xml
T
2025-11-19 11:53:53 +08:00

1086 lines
67 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_property_lease_contract_tree" model="ir.ui.view">
<field name="name">property.lease.contract.tree</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<tree string="合同审批" multi_edit="1" limit="15">
<field name="code"/>
<field name="contract_code"/>
<field name="version" string="版本"/>
<field name="lessee_id"/>
<field name="property_name"/>
<field name="term_start_time"/>
<field name="term_end_time"/>
<field name="tenure_type"/>
<field name="contract_type"/>
<field name="progress_percentage" widget="progressbar"/>
<field name="rent"/>
<field name="deposit" optional="hide"/>
</tree>
</field>
</record>
<record id="view_property_lease_contract_form" model="ir.ui.view">
<field name="name">property.lease.contract.form</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<form string="合同审批">
<header>
<button name="action_generate_rental_charges" class="oe_link btn btn-primary" type="object"
string="生成租金费用" invisible="1"/>
<button name="action_generate_administrative_expenses" class="oe_link btn btn-primary" type="object"
string="生成管理费用" invisible="1"/>
</header>
<sheet>
<widget name="web_ribbon" title="新建" bg_color="text-bg-success"
invisible="condition != 'new'"/>
<widget name="web_ribbon" title="审批" bg_color="text-bg-success"
invisible="condition != 'approval'"/>
<widget name="web_ribbon" title="作废" bg_color="text-bg-danger"
invisible="condition != 'cancel'"/>
<group col="5">
<group>
<field name="code" string="流水号:"/>
</group>
<group>
<field name="is_split" string="拆分"/>
</group>
<group>
<field name="number" invisible="1"/>
</group>
<group>
<field name="is_issues"/>
</group>
<group>
<field name="related_issues_id" invisible="is_issues == False"/>
</group>
</group>
<div class="col-12 text-center">
<h1>
<field name="name_title" readonly="1"/>
</h1>
</div>
<group col="3" string="基本信息">
<group>
<label for="contract_code"/>
<div class="d-inline-flex w-100">
<field name="contract_code" class="me-2" style="max-width: 12rem;" string="合同编号"/>
<field name="contract_type" class="me-2" style="max-width: 7rem;" force_save="1"/>
<field name="version" class="me-2" style="max-width: 7rem;" force_save="1"/>
</div>
</group>
<group>
<field name="rental_purposes" options="{'no_open': True}"/>
</group>
<group>
<field name="contract_sort"/>
</group>
</group>
<group>
<group>
<field name="name" invisible="1"/>
<field name="state" invisible="1"/>
<field name="work_end" invisible="1"/>
<field name="rent_company" string="出租方" readonly="1" invisible="contract_sort != 'property'"/>
<field name="lessee_id"/>
<!-- <field name="lessor_id" invisible="1"/>-->
<field name="users_id" readonly="1" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="property_name"/>
<field name="contract_date" invisible="1"/>
<field name="issues_result" invisible="is_issues == False"/>
<field name="use_address" invisible="contract_sort != 'property'"/>
<field name="address_for_delivery" invisible="contract_sort != 'property'"/>
<field name="title_information" invisible="contract_sort != 'property'"/>
<field name="title_address" invisible="contract_sort != 'property'"/>
<field name="handling_opinions" invisible="contract_sort != 'property'"/>
<field name="tenure_type" invisible="1"/>
<field name="is_child_contract" invisible="1"/>
<field name="is_contract" invisible="1"/>
<field name="contract_source_id" invisible="not is_child_contract"/>
<field name="condition" readonly="1" invisible="1"/>
</group>
</group>
<notebook>
<page string="物业列表" invisible="(state in ['分管领导', '总经理']) and (not work_end)">
<button name="choose_property_button" string="添加物业" type="object"
class="btn-primary" invisible="state not in ['申请人', '复核', '部门经理']"/>
<field name="lease_ids" string=" ">
<tree editable="bottom" create="false">
<field name="lease_id" column_invisible="1"/>
<field name="address_id"/>
<field name="admin_line_id" options="{'no_open': True}"/>
<field name="property_area"/>
<field name="evaluate_unit_price"/>
<field name="message_standard_id"/>
<button name="open_record" string="详情" type="object" class="btn-primary"/>
</tree>
</field>
</page>
<page string="承租方信息" invisible="1">
<group col="2">
<group>
<field name="invoicing_type"/>
<field name="invoicing_begins"/>
<field name="tax_number"/>
<field name="industry_id" options="{'no_open': True}"/>
</group>
<group>
<field name="contact"/>
<field name="phone"/>
<field name="email"/>
<field name="card"/>
</group>
</group>
<group>
<field name="lease_bank_ids" string="银行账户信息">
<tree editable="bottom" delete="false">
<field name="name"/>
<field name="user"/>
<field name="bank"/>
</tree>
</field>
</group>
</page>
<page string="子合同" invisible="not is_contract">
<field name="subset_ids">
<tree editable="bottom">
<field name="subset_id" column_invisible="1"/>
<field name="name"/>
<field name="contract_id" options="{'no_open': True}"/>
<field name="lessee_id"/>
<field name="rental_purposes"/>
</tree>
</field>
</page>
</notebook>
<group col="2" string="租赁期限">
<group>
<label for="term_start_time"/>
<div class="d-inline-flex w-100">
<field name="term_start_time" string="租期:" class="me-2"
style="max-width: 8rem !important;"/>至
<field name="term_end_time" string=" " class="ms-2"
style="max-width: 8rem !important;"/>共
<field name="lease_term_year" string=" " class="ms-2"
style="max-width: 3rem !important;"/>年
<field name="lease_term_month" string=" " class="ms-2"
style="max-width: 3rem !important;"/>月
<field name="lease_term_day" string=" " class="ms-2"
style="max-width: 3rem !important;"/>日
</div>
<label for="cycle_mode"/>
<div class="d-inline-flex w-100">
<field name="cycle_mode" class="me-2" style="max-width: 11rem !important;"/>付款方式
<field name="cycle_dict" class="me-2" style="max-width: 11rem !important;"/>
</div>
<field name="total_area" invisible="contract_sort == 'ads'"/>
<field name="rent" string="月租金" invisible="cycle_dict != 'monthly'"/>
<field name="rent" string="季租金" invisible="cycle_dict != 'quarter'"/>
<field name="rent" string="半年租金" invisible="cycle_dict != 'half'"/>
<field name="rent" string="年租金" invisible="cycle_dict != 'year'"/>
<field name="unit_price" force_save="1" invisible="contract_sort != 'property'"/>
</group>
<group>
<label for="first_pay"/>
<div class="d-inline-flex w-100">
<field name="first_pay" string="首次付款日:" class="me-2"
style="max-width: 8rem !important;"/>每月支付日期
<field name="date_of_payment" string=" " class="ms-2"
style="max-width: 3rem !important;"/>日
</div>
<field name="expected_reminders"/>
<field name="is_less_than_2" invisible="1"/>
</group>
</group>
<group col="2" string="收费详细">
<group invisible="contract_sort != 'property'">
<label for="rent_free_period_month"/>
<div class="d-inline-flex w-100">
<field name="rent_free_period_month" required="1" class="me-2"/>
月
<field name="rent_free_period_days" required="1" class="me-2"/>
日
</div>
<field name="admin_id" invisible="1"/>
<field name="is_water" invisible="1"/>
<field name="is_electricity" invisible="1"/>
<field name="performance_bonds_write" invisible="1"/>
<label for="first_years_begin"/>
<div class="d-inline-flex w-100">
<field name="first_years_begin" string="自第" class="me-2"
style="max-width: 3rem !important;"/>年开始,每
<field name="increments_every_few_years" class="me-2"
style="max-width: 3rem !important;"/>年递增
<field name="increment_method" required="1" class="me-2"
style="max-width: 5rem !important;"/>
<field name="increment_value"
class="me-2" style="max-width: 5rem !important;"/>
</div>
</group>
<group>
<label for="breach"/>
<div class="d-inline-flex w-100">
<field name="breach" string="违约金时点" class="me-2"
style="max-width: 11rem !important;"/>违约金比例
<field name="percentage_liquidated_damages" class="me-2"
style="max-width: 11rem !important;"/>
</div>
<field name="tax_rate"/>
</group>
</group>
<group>
<label for="deposit_type"/>
<div class="d-inline-flex w-100">
<field name="deposit_type" string="押金/履约保证金" class="me-2"
style="max-width: 11rem !important;"/>金额
<field name="deposit" class="me-2"
style="max-width: 11rem !important;"/>
</div>
</group>
<group col="3" invisible="contract_sort != 'property'">
<group>
<field name="performance_bonds"/>
</group>
<group>
<field name="utility_bills"/>
</group>
<group>
<field name="renovation_deposit"/>
</group>
</group>
<group>
<field name="miscellaneous"/>
</group>
<notebook>
<page string="租金明细" invisible="(state in ['分管领导', '总经理']) and (not work_end)">
<field name="breakdown_ids" string=" ">
<tree editable="bottom">
<field name="breakdown_id" column_invisible="1"/>
<field name="unit_price"/>
<field name="monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="month_number"/>
<field name="period_rent"/>
</tree>
</field>
</page>
<page string="其他费用" invisible="(state in ['分管领导', '总经理']) and (not work_end)">
<field name="other_ids" string=" ">
<tree editable="bottom">
<field name="other_id" column_invisible="1"/>
<field name="charges"/>
<field name="coping"/>
<field name="coping_time"/>
</tree>
</field>
</page>
<page string="水表明细" invisible="not is_water">
<field name="water_fee_ids" string=" ">
<tree editable="bottom">
<field name="contract_id" column_invisible="1"/>
<field name="epitope_values_id"/>
<field name="unit_number"/>
<field name="property_meter_water_id" options="{'no_open': True}"/>
<field name="rate"/>
<field name="line_loss"/>
<field name="unit_price"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>
</field>
</page>
<page string="电表明细" invisible="not is_electricity">
<field name="electricity_fee_ids" string=" ">
<tree editable="bottom">
<field name="contract_id" column_invisible="1"/>
<field name="epitope_values_id"/>
<field name="unit_number"/>
<field name="property_meter_archives_id" options="{'no_open': True}"/>
<field name="rate"/>
<field name="line_loss"/>
<field name="unit_price"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>
</field>
</page>
<page string="银行流水" invisible="(state in ['分管领导', '总经理']) and (not work_end)">
<field name="bank_statements_ids" string=" ">
<tree editable="bottom">
<field name="start_time"/>
<field name="company_id" required="1"/>
<field name="name"/>
<field name="name_account"/>
<field name="contract_account"/>
<field name="remake"/>
<field name="property_ids" widget="many2many_tags" options="{'no_create': True}"/>
<field name="contract_penalty"/>
<field name="original_amount"/>
<field name="voucher_type"/>
</tree>
</field>
</page>
</notebook>
<group col="4">
<group>
<field name="tax" readonly="1" force_save="1"/>
</group>
<group>
<field name="not_tax_amount" readonly="1" force_save="1"/>
</group>
<group>
<field name="first_year_rent" force_save="1"/>
</group>
<group>
<field name="total_contract_receivables" style="font-size: 1.2rem; font-weight: bold;"/>
</group>
</group>
<notebook>
<page string="附件">
<group col="2">
<group>
<field name="property_documents_ids" widget="preview_many2many" invisible="contract_sort == 'property'"/>
<field name="asset_valuation_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="confirmation_transaction_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="responsibility_book_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="license_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
</group>
<group>
<field name="power_attorney_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="lease_contract" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="other_ment_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
</group>
</group>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="view_property_lease_contract_tree1" model="ir.ui.view">
<field name="name">property.lease.contract.tree</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<tree create="false" string="物业合同管理" multi_edit="1" edit="false" delete="false" limit="15">
<header>
<!-- <button name="all_put_evaluation_plan" string="评估推送" type="object" class="btn btn-primary"/>-->
<button name="button_lease_extension" type="object" class="btn-primary" string="续租"/>
<button name="button_lease_supplement" type="object" class="btn-primary" string="合同补充"/>
<button name="button_lease_change" type="object" class="btn-primary" string="变更"/>
<button name="action_copy_record1" type="object" string="拆分" class="btn-primary"/>
<button name="unlink" string="删除" type="object" icon="fa-trash" groups="base.group_system" confirm="确定要删除选中的记录吗?"/>
</header>
<field name="contact_state" widget="badge"
decoration-info="contact_state == 'to'"
decoration-success="contact_state == 'ing'"
decoration-danger="contact_state == 'terminate'"
decoration-warning="contact_state == 'complete'"
decoration-muted="contact_state == 'early_termination'"/>
<field name="contract_code" decoration-danger="is_equal"/>
<field name="version" string="版本"/>
<field name="property_name"/>
<field name="lessee_id"/>
<field name="tenure_type"/>
<field name="contract_sort" column_invisible="1"/>
<field name="total_area"/>
<field name="is_equal" column_invisible="1"/>
<field name="deposit" decoration-success="deposit_status == 'paid'"
decoration-danger="deposit_status == 'unpaid'" decoration-muted="deposit_status == 'returned'"
decoration-warning="deposit_status == 'no_paid'"/>
<field name="rent"/>
<field name="not_received" decoration-muted="comparison == 'equal'"
decoration-danger="comparison == 'outweigh'"
decoration-success="comparison == 'less'"/>
<field name="comparison" column_invisible="1"/>
<field name="percentage_damages"/>
<field name="total_receivable"/>
<field name="actual_start_time"/>
<field name="actual_end_time"/>
<field name="term_start_time"/>
<field name="term_end_time" decoration-info="end_comparison == 'blue'"
decoration-danger="end_comparison == 'red'"
decoration-warning="end_comparison == 'yellow'"/>
<field name="contract_type"/>
<field name="contract_date"/>
<field name="contract_signature_ids" widget="preview_many2many" invisible="not contract_date"/>
<field name="end_comparison" column_invisible="1"/>
<field name="deposit_status" column_invisible="1"/>
<!-- <field name="lessor_id" string="公司"/>-->
<field name="admin_id" string="负责人"/>
<button name="contract_signature" type="object" class="btn-primary" string="合同签订" invisible="contract_date"/>
<button name="put_evaluation_plan" type="object" class="btn-primary" string="评估推送"
invisible="contact_state == 'ing'"/>
<!-- <button name="button_lease_extension" type="object" class="btn-primary" string="续租"/>-->
<!-- <button name="button_lease_return" type="object" class="btn-primary" string="退租"/>-->
</tree>
</field>
</record>
<record id="view_property_lease_contract_form1" model="ir.ui.view">
<field name="name">property.lease.contract.form</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<form create="false" string="物业合同管理">
<header>
<button name="action_generate_rental_charges" class="oe_link btn btn-primary" type="object"
string="生成租金费用" invisible="1"/>
<button name="action_generate_administrative_expenses" class="oe_link btn btn-primary" type="object"
string="生成管理费用" invisible="1"/>
</header>
<sheet>
<div name="button_box" class="oe_button_box">
<button icon="fa-calendar" name="action_open_contract" class="oe_stat_button" type="object">
<field string="租金" name="contract_count" widget="statinfo"/>
</button>
<button icon="fa-exchange" name="action_open_reconciliation" class="oe_stat_button" type="object">
<field string="对账" name="reconciliation_count" widget="statinfo"/>
</button>
<button icon="fa-share-alt" name="action_open_process" class="oe_stat_button" type="object">
<field string="流程" name="process_count" widget="statinfo"/>
</button>
</div>
<widget name="web_ribbon" title="待执行" bg_color="text-bg-success"
invisible="contact_state != 'to'"/>
<widget name="web_ribbon" title="已执行" bg_color="text-bg-success"
invisible="contact_state != 'complete'"/>
<widget name="web_ribbon" title="已终止" bg_color="text-bg-success"
invisible="contact_state != 'terminate'"/>
<widget name="web_ribbon" title="提前终止" bg_color="text-bg-danger"
invisible="contact_state != 'early_termination'"/>
<group col="3">
<group>
<field name="code" readonly="1" string="流水号:"/>
</group>
<group>
<field name="number" invisible="1"/>
</group>
<group>
<field name="is_split" string="拆分"/>
</group>
</group>
<div class="col-12 text-center">
<h1>
<field name="name_title" readonly="1"/>
</h1>
</div>
<group col="3" string="基本信息">
<group>
<label for="contract_code"/>
<div class="d-inline-flex w-100">
<field name="contract_code" class="me-2" style="max-width: 12rem;" string="合同编号"/>
<field name="contract_type" class="me-2" style="max-width: 7rem;" force_save="1"/>
<field name="version" class="me-2" style="max-width: 7rem;" force_save="1"/>
</div>
</group>
<group>
<field name="rental_purposes" invisible="contract_sort != 'property'" options="{'no_open': True}"/>
</group>
<group>
<field name="contract_sort"/>
</group>
</group>
<group>
<group>
<field name="name" invisible="1"/>
<field name="contract_id" invisible="contract_type != 'lease_renewal'"/>
<field name="rent_company" string="出租方" invisible="contract_sort != 'property'"/>
<field name="company_id" invisible="1"/>
<field name="lessee_id"/>
<field name="lessee_name" invisible="1"/>
<field name="users_id" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="use_address" invisible="contract_sort != 'property'"/>
<field name="address_for_delivery" invisible="contract_sort != 'property'"/>
<field name="property_name"/>
<field name="is_child_contract" invisible="1"/>
<field name="is_contract" invisible="1"/>
<field name="contract_source_id" invisible="not is_child_contract"/>
<field name="contact_state" invisible="1"/>
<field name="deposit_status" invisible="1"/>
<field name="tenure_type" invisible="1"/>
<field name="title_information" readonly="1"/>
<field name="condition" invisible="1" />
<field name="is_equal" invisible="1"/>
<field name="end_comparison" invisible="1"/>
<field name="comparison" invisible="1"/>
<field name="expiration_coming" invisible="1"/>
</group>
</group>
<notebook>
<page string="物业列表">
<button name="choose_property_button" string="添加物业" type="object" class="btn-primary"/>
<field name="lease_ids" string=" ">
<tree editable="bottom" create="false">
<field name="lease_id" column_invisible="1"/>
<field name="address_id" options="{'no_open': True, 'no_create': True}"/>
<field name="property_area"/>
<field name="evaluate_unit_price"/>
<field name="message_standard_id"/>
<field name="admin_line_id" options="{'no_open': True}"/>
<button name="open_record" string="详情" type="object" class="btn-primary"/>
</tree>
</field>
</page>
<page string="承租方信息" invisible="1">
<group col="2">
<group>
<field name="invoicing_type"/>
<field name="invoicing_begins"/>
<field name="tax_number"/>
<field name="industry_id" options="{'no_open': True}"/>
</group>
<group>
<field name="contact"/>
<field name="phone"/>
<field name="email"/>
</group>
</group>
<group>
<field name="lease_bank_ids" string="银行账户信息">
<tree editable="bottom">
<field name="name"/>
<field name="user"/>
<field name="bank"/>
</tree>
</field>
</group>
</page>
<page string="子合同" invisible="not is_contract">
<field name="subset_ids">
<tree editable="bottom">
<field name="subset_id" column_invisible="1"/>
<field name="name"/>
<field name="contract_id" options="{'no_open': True}"/>
<field name="lessee_id"/>
<field name="rental_purposes" options="{'no_open': True}"/>
</tree>
</field>
</page>
</notebook>
<group col="2" string="租赁期限">
<group>
<label for="lease_term_year"/>
<div class="d-inline-flex w-100">
<field name="lease_term_year"/>年
<field name="lease_term_month"/>月
<field name="lease_term_day"/>日
</div>
<label for="term_start_time"/>
<div class="d-inline-flex w-100">
<field name="term_start_time" class="me-2" style="max-width: 7rem;"
string="合约起止"/>至
<field name="term_end_time" class="me-2" style="max-width: 7rem;"
force_save="1"/>
</div>
<!-- <label for="actual_start_time"/>-->
<!-- <div class="d-inline-flex w-100" invisible="contract_type != 'lease_renewal'">-->
<!-- <field name="actual_start_time" class="me-2" style="max-width: 7rem"-->
<!-- string="实际起止"/>至-->
<!-- <field name="actual_end_time" class="me-2" style="max-width: 7rem;"-->
<!-- force_save="1"/>-->
<!-- </div>-->
<label for="cycle_mode"/>
<div class="d-inline-flex w-100">
<field name="cycle_mode" class="me-2"
style="max-width: 11rem !important;"/>付款方式
<field name="cycle_dict" class="me-2"
style="max-width: 11rem !important;"/>
</div>
<field name="total_area" invisible="contract_sort == 'ads'"/>
<field name="rent" string="月租金" invisible="cycle_dict != 'monthly'"/>
<field name="rent" string="季租金" invisible="cycle_dict != 'quarter'"/>
<field name="rent" string="半年租金" invisible="cycle_dict != 'half'"/>
<field name="rent" string="年租金" invisible="cycle_dict != 'year'"/>
<field name="unit_price" force_save="1" invisible="contract_sort != 'property'"/>
</group>
<group>
<label for="first_pay"/>
<div class="d-inline-flex w-100">
<field name="first_pay" string="首次付款日:" class="me-2"
style="max-width: 8rem !important;"/>每月支付日期
<field name="date_of_payment" string=" " class="ms-2"
style="max-width: 3rem !important;"/>日
</div>
<field name="expected_reminders"/>
<field name="is_less_than_2" invisible="1"/>
</group>
</group>
<group col="2" string="收费详细">
<group invisible="contract_sort != 'property'">
<label for="rent_free_period_month"/>
<div class="d-inline-flex w-100">
<field name="rent_free_period_month" required="1" class="me-2"/>
月
<field name="rent_free_period_days" required="1" class="me-2"/>
日
</div>
<field name="admin_id" invisible="1" force_save="True"/>
<field name="is_water" invisible="1"/>
<field name="is_manage" invisible="1"/>
<field name="is_electricity" invisible="1"/>
<field name="performance_bonds_write" invisible="1"/>
<field name="total_contract_receivables"/>
<label for="first_years_begin"/>
<div class="d-inline-flex w-100">
<field name="first_years_begin" string="自第" class="me-2"
style="max-width: 3rem !important;"/>年开始,每
<field name="increments_every_few_years" class="me-2"
style="max-width: 3rem !important;"/>年递增
<field name="increment_method" required="1" class="me-2"
style="max-width: 5rem !important;"/>
<field name="increment_value"
class="me-2" style="max-width: 5rem !important;"/>
</div>
</group>
<group>
<label for="breach"/>
<div class="d-inline-flex w-100">
<field name="breach" string="违约金时点" class="me-2"
style="max-width: 11rem !important;"/>违约金比例
<field name="percentage_liquidated_damages" class="me-2"
style="max-width: 11rem !important;"/>
</div>
<field name="tax_rate"/>
<field name="not_received" invisible="1"/>
<field name="actual_receivable" invisible="1"/>
<field name="now_receivable" invisible="1"/>
<field name="total_receivable" invisible="1"/>
</group>
</group>
<group>
<label for="deposit_type"/>
<div class="d-inline-flex w-100">
<field name="deposit_type" string="押金/履约保证金" class="me-2"
style="max-width: 11rem !important;"/>金额
<field name="deposit" class="me-2"
style="max-width: 11rem !important;"/>
</div>
</group>
<group col="3" invisible="contract_sort != 'property'">
<group>
<field name="performance_bonds"/>
</group>
<group>
<field name="utility_bills"/>
</group>
<group>
<field name="renovation_deposit"/>
</group>
</group>
<group>
<field name="miscellaneous"/>
</group>
<notebook class="o_collapsible_notebook">
<page string="租金明细" invisible="contract_sort != 'property'">
<field name="breakdown_ids" string=" ">
<tree editable="bottom" delete="false">
<field name="breakdown_id" column_invisible="1"/>
<field name="unit_price"/>
<field name="monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="month_number"/>
<field name="period_rent"/>
</tree>
</field>
</page>
<page string="广告位租金明细" invisible="contract_sort != 'guanggao'">
<field name="breakdown_ids" string=" ">
<tree editable="bottom" delete="false">
<field name="breakdown_id" column_invisible="1"/>
<field name="unit_price"/>
<field name="monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="month_number"/>
<field name="period_rent"/>
</tree>
</field>
</page>
<page string="管子间租金明细" invisible="contract_sort != 'guanzi'">
<field name="breakdown_ids" string=" ">
<tree editable="bottom" delete="false">
<field name="breakdown_id" column_invisible="1"/>
<field name="unit_price"/>
<field name="monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="month_number"/>
<field name="period_rent"/>
</tree>
</field>
</page>
<page string="管理费明细" invisible="not is_manage">
<field name="management_breakdown_ids" string=" ">
<tree editable="bottom">
<field name="breakdown_id" column_invisible="1"/>
<field name="management_unit_price"/>
<field name="management_monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="management_month_number"/>
<field name="management_period_rent"/>
</tree>
</field>
</page>
<page string="电费明细" invisible="1">
<field name="ele_breakdown_ids" string=" ">
<tree editable="bottom">
<field name="breakdown_id" column_invisible="1"/>
<field name="ele_unit_price"/>
<field name="ele_monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="ele_month_number"/>
<field name="ele_period_rent"/>
</tree>
</field>
</page>
<page string="水费明细" invisible="1">
<field name="water_breakdown_ids" string=" ">
<tree editable="bottom">
<field name="breakdown_id" column_invisible="1"/>
<field name="water_unit_price"/>
<field name="water_monthly_amount"/>
<field name="start_data"/>
<field name="end_data"/>
<field name="water_month_number"/>
<field name="water_period_rent"/>
</tree>
</field>
</page>
<page string="其他费用">
<field name="other_ids" string=" ">
<tree editable="bottom" delete="false">
<field name="other_id" column_invisible="1"/>
<field name="charges"/>
<field name="coping"/>
<field name="coping_time"/>
</tree>
</field>
</page>
<page string="银行流水">
<field name="bank_statements_ids" string=" ">
<tree editable="bottom" delete="false">
<field name="start_time"/>
<field name="company_id" options="{'no_open': True}"/>
<field name="name"/>
<field name="name_account"/>
<field name="contract_account"/>
<field name="remake"/>
<field name="property_ids" widget="many2many_tags" options="{'no_create': True}"/>
<field name="contract_penalty"/>
<field name="original_amount"/>
<field name="voucher_type"/>
</tree>
</field>
</page>
<page string="水表信息" invisible="not is_water">
<field name="water_fee_ids" string=" ">
<tree editable="bottom">|
<field name="contract_id" column_invisible="1"/>
<field name="epitope_values_id"/>
<field name="unit_number"/>
<field name="property_meter_water_id" options="{'no_open': True}"/>
<field name="rate"/>
<field name="line_loss"/>
<field name="unit_price"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>
</field>
</page>
<page string="电表信息" invisible="not is_electricity">
<field name="electricity_fee_ids" string=" ">
<tree editable="bottom">
<field name="contract_id" column_invisible="1"/>
<field name="epitope_values_id"/>
<field name="unit_number"/>
<field name="property_meter_archives_id" options="{'no_open': True}"/>
<field name="rate"/>
<field name="line_loss"/>
<field name="unit_price"/>
<field name="start_date"/>
<field name="end_date"/>
</tree>
</field>
</page>
</notebook>
<group col="4">
<group>
<field name="tax" readonly="1" force_save="1"/>
</group>
<group>
<field name="not_tax_amount" readonly="1" force_save="1"/>
</group>
<group>
<field name="first_year_rent" force_save="1" readonly="1"/>
</group>
<group>
<field name="total_contract_receivables" style="font-size: 1.2rem; font-weight: bold;"
readonly="1"/>
</group>
</group>
<notebook class="o_collapsible_notebook">
<page string="附件">
<group col="2">
<group>
<field name="property_documents_ids" widget="preview_many2many" invisible="contract_sort == 'property'"/>
<field name="asset_valuation_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="confirmation_transaction_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="responsibility_book_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="license_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
</group>
<group>
<field name="power_attorney_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="lease_contract" widget="preview_many2many" invisible="contract_sort != 'property'"/>
<field name="other_ment_ids" widget="preview_many2many" invisible="contract_sort != 'property'"/>
</group>
</group>
</page>
<page string="应收明细">
<field name="receivable_ids" string=" ">
<tree editable="bottom" create="false">
<field name="lease_contract_id" column_invisible="1"/>
<field name="management_type_id"/>
<field name="last_month_table"/>
<field name="this_month_table"/>
<field name="ratio"/>
<field name="billable_quantity"/>
<field name="due_date"/>
<field name="due_date_end"/>
<field name="original_amount" string="应计金额"/>
<field name="pre_collection"/>
<field name="actual_coping"/>
<field name="remark"/>
</tree>
</field>
</page>
</notebook>
<group>
<field name="handover_time"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="property_lease_contract_search" model="ir.ui.view">
<field name="name">property.lease.contract.search</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<search>
<field name="name"
string="综合搜索"
filter_domain="['|', '|', ('property_name', 'ilike', self), ('contract_code', 'ilike', self), ('lessee_id.name', 'ilike', self)]"/>
<field name="lessee_id"/>
<field name="contract_code"/>
<field name="property_name"/>
<field name="lessor_id"/>
<field name="tenure_type"/>
<group expand="0" string="Group By">
<filter name="group_by_lessor_id" context="{'group_by': 'lessor_id'}"/>
<filter name="group_by_tenure_type" context="{'group_by': 'tenure_type'}"/>
<filter name="group_by_condition" context="{'group_by': 'condition'}"/>
<filter name="group_by_lessee_id" context="{'group_by': 'lessee_id'}"/>
<filter name="group_by_lessor_id" context="{'group_by': 'lessor_id'}"/>
<filter name="group_by_admin_id" context="{'group_by': 'admin_id'}"/>
<filter name="group_by_title_address" context="{'group_by': 'title_address'}"/>
</group>
<header_search>
<quick_filter string="状态">
<filter string="待执行" name="to" domain="[('contact_state', '=', 'to')]" />
<filter string="执行中" name="ing" domain="[('contact_state', '=', 'ing')]" />
<filter string="中止" name="done" domain="[('contact_state', '=', 'terminate')]"/>
<filter string="历史" name="early" domain="['|', ('expiration_coming', '=', 'due'), ('contact_state', '=', 'terminate')]"/>
<filter string="逾期" name="overdue" domain="[('is_overdue', '=', True)]"/>
<filter string="即将到期" name="reclaim" domain="[('expiration_coming', '=', 'coming')]"/>
</quick_filter>
</header_search>
</search>
</field>
</record>
<record id="property_my_lease_contract_search" model="ir.ui.view">
<field name="name">property.my.lease.contract.search</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<search>
<field name="name"
string="综合搜索"
filter_domain="['|', '|', ('property_name', 'ilike', self), ('contract_code', 'ilike', self), ('lessee_id.name', 'ilike', self)]"/>
<field name="lessee_id"/>
<field name="contract_code"/>
<field name="property_name"/>
<group expand="0" string="Group By">
<filter name="group_by_condition" context="{'group_by': 'condition'}"/>
<filter name="group_by_lessee_id" context="{'group_by': 'lessee_id'}"/>
<filter name="group_by_lessor_id" context="{'group_by': 'lessor_id'}"/>
<filter name="group_by_admin_id" context="{'group_by': 'admin_id'}"/>
<filter name="group_by_title_address" context="{'group_by': 'title_address'}"/>
</group>
<header_search>
<quick_filter string="状态">
<filter string="待执行" name="to" domain="[('contact_state', '=', 'to')]" />
<filter string="执行中" name="ing" domain="[('contact_state', '=', 'ing')]" />
<filter string="中止" name="done" domain="[('contact_state', '=', 'terminate')]"/>
<filter string="历史" name="early" domain="['|', ('expiration_coming', '=', 'due'), ('contact_state', '=', 'terminate')]"/>
<filter string="即将到期" name="reclaim" domain="[('expiration_coming', '=', 'coming')]"/>
</quick_filter>
</header_search>
</search>
</field>
</record>
<!-- 已租面积报表 -->
<record id="yuthon_property_rented_area_report" model="ir.ui.view">
<field name="name">yuthon.property.rented.area.report</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<tree string="已租面积报表" editable="bottom" create="false">
<field name="name"/>
<field name="total_area"/>
<field name="lessee_id"/>
<field name="contract_code"/>
<field name="unit_price"/>
<field name="rent" string="租金"/>
<field name="admin_id"/>
<field name="company_id" string="公司"/>
<button name="open_record" string="详情" type="object" class="btn-primary"/>
</tree>
</field>
</record>
<record id="yuthon_property_rented_area_report_search" model="ir.ui.view">
<field name="name">yuthon.property.rented.area.report.search</field>
<field name="model">property.lease.contract</field>
<field name="arch" type="xml">
<search string="已租面积报表">
<field name="admin_id"/>
<field name="company_id"/>
<field name="tenure_type"/>
<group expand="0" string="Group By">
<filter string="权属类型" name="group_by_tenure_type" context="{'group_by': 'tenure_type'}"/>
</group>
<searchpanel>
<field name="precinct_id" string="所属片区" enable_counters="1"/>
<field name="company_id" enable_counters="1"/>
<field name="tenure_type" enable_counters="1" string="权属类型"/>
</searchpanel>
</search>
</field>
</record>
<record id="rented_area_report_action" model="ir.actions.act_window">
<field name="name">已租面积报表</field>
<field name="res_model">property.lease.contract</field>
<field name="view_mode">tree</field>
<field name="context">{'search_default_group_by_tenure_type': True}</field>
<field name="view_id" ref="yuthon_property_approval.yuthon_property_rented_area_report"/>
<field name="search_view_id" ref="yuthon_property_approval.yuthon_property_rented_area_report_search"/>
</record>
<record id="property_lease_contract_message_action" model="ir.actions.act_window">
<field name="name">合同管理</field>
<field name="res_model">property.lease.contract</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_group_by_admin_id': True}</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_property_approval.view_property_lease_contract_tree1')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('yuthon_property_approval.view_property_lease_contract_form1')})]"/>
</record>
<record id="property_lease_contract_action" model="ir.actions.act_window">
<field name="name">合同审批</field>
<field name="res_model">property.lease.contract</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('condition', 'in', ['new', 'approval', 'cancel'])]</field>
<field name="context">{'search_default_group_by_admin_id': True}</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_property_approval.view_property_lease_contract_tree')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('yuthon_property_approval.view_property_lease_contract_form')})]"/>
</record>
<record id="property_my_lease_contract_action" model="ir.actions.act_window">
<field name="name">我的合同</field>
<field name="res_model">property.lease.contract</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('admin_id', '=', uid)]</field>
<field name="context">{'search_default_group_by_admin_id': True}</field>
<field name="view_ids" eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('yuthon_property_approval.view_property_lease_contract_tree1')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('yuthon_property_approval.view_property_lease_contract_form1')})]"/>
<field name="search_view_id" ref="yuthon_property_approval.property_my_lease_contract_search"/>
</record>
<record id="all_data_write_property_contract" model="ir.actions.server">
<field name="name">批量导入合同</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.action_yuthon_property_contract_wizard()</field>
</record>
<record id="all_data_relevance_property" model="ir.actions.server">
<field name="name">更新物业名称</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.action_relevance_property()</field>
</record>
<record id="all_data_update_property_lease" model="ir.actions.server">
<field name="name">更新出租方信息和管理员</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.trigger_lease_ids()</field>
</record>
<record id="all_data_update_property_contract" model="ir.actions.server">
<field name="name">同步物业合同信息</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.update_property()</field>
</record>
<record id="administrator_forcibly_closes" model="ir.actions.server">
<field name="name">管理员强制结束</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.all_end_approval()</field>
<field name="groups_id" eval="[(4, ref('base.group_system'))]"/>
</record>
<!-- <record id="update_contract" model="ir.actions.server">-->
<!-- <field name="name">一次性</field>-->
<!-- <field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>-->
<!-- <field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>-->
<!-- <field name="state">code</field>-->
<!-- <field name="code">action = model.update_contract()</field>-->
<!-- </record>-->
<!-- <record id="all_data_action_use_admin" model="ir.actions.server">-->
<!-- <field name="name">调换</field>-->
<!-- <field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>-->
<!-- <field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>-->
<!-- <field name="state">code</field>-->
<!-- <field name="code">action = model.disposable_button()</field>-->
<!-- </record>-->
<!-- <record id="all_data_action_update_rent" model="ir.actions.server">-->
<!-- <field name="name">更新租金明细</field>-->
<!-- <field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>-->
<!-- <field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>-->
<!-- <field name="state">code</field>-->
<!-- <field name="code">action = model.all_action_generate_details()</field>-->
<!-- </record>-->
<record id="all_data_action_update_time" model="ir.actions.server">
<field name="name">更新颜色</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.set_actual_time_to_contract_time()</field>
</record>
<record id="all_data_action_update_time" model="ir.actions.server">
<field name="name">同步物业合同信息</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.update_property()</field>
</record>
<record id="update_lease_ids" model="ir.actions.server">
<field name="name">更新水电表信息</field>
<field name="model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="binding_model_id" ref="yuthon_property_approval.model_property_lease_contract"/>
<field name="state">code</field>
<field name="code">action = model.update_lease_ids()</field>
</record>
</odoo>