118 lines
5.5 KiB
XML
118 lines
5.5 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<record id="view_processing_order_approval_tree" model="ir.ui.view">
|
|
<field name="name">processing.order.approval.tree</field>
|
|
<field name="model">processing.order.approval</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="处理单审批">
|
|
<header>
|
|
<button name="pull_accounts" type="object" string="生成应收" class="oe_highlight"/>
|
|
</header>
|
|
<field name="name"/>
|
|
<field name="users_id"/>
|
|
<field name="applicant_id"/>
|
|
<field name="processing_results"/>
|
|
<field name="create_time"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="view_processing_order_approval_form" model="ir.ui.view">
|
|
<field name="name">processing.order.approval.form</field>
|
|
<field name="model">processing.order.approval</field>
|
|
<field name="arch" type="xml">
|
|
<form string="处理单审批" create="1">
|
|
<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"/>
|
|
<field name="work_end" invisible="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="name"/>
|
|
<field name="applicant_id"/>
|
|
<field name="repair_date"/>
|
|
<field name="users_id"/>
|
|
<field name="company_id" invisible="1"/>
|
|
<field name="department_id" invisible="1"/>
|
|
<field name="self_users_ids" invisible="1"/>
|
|
<field name="repair_id" invisible="1"/>
|
|
<field name="device_id" invisible="1"/>
|
|
<field name="documents_ids" widget="preview_many2many"/>
|
|
</group>
|
|
<group string="处理详情" col="2" invisible="not repair_id">
|
|
<group>
|
|
<field name="property_id"/>
|
|
<field name="contract_id"/>
|
|
<field name="lessee_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="contact"/>
|
|
<field name="phone"/>
|
|
<field name="problem_description"/>
|
|
</group>
|
|
</group>
|
|
<group string="处理详情" invisible="not device_id">
|
|
<group>
|
|
<field name="fault_reason"/>
|
|
<field name="device_name"/>
|
|
<field name="device_code"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<field name="repair_details"/>
|
|
<field name="processing_results"/>
|
|
<field name="is_fee"/>
|
|
</group>
|
|
<group string="费用信息" col="2" invisible="not is_fee">
|
|
<group>
|
|
<field name="labor_costs"/>
|
|
<field name="fee_description"/>
|
|
</group>
|
|
<group>
|
|
<field name="lamp_model"/>
|
|
<field name="stuff_costs"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<field name="follow_up"/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="view_processing_order_approval_search" model="ir.ui.view">
|
|
<field name="name">processing.order.approval.search</field>
|
|
<field name="model">processing.order.approval</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
<group expand="0" string="Group By">
|
|
<filter string="是否收费" name="group_is_fee" context="{'group_by': 'is_fee'}"/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<record id="view_processing_order_approval_action" model="ir.actions.act_window">
|
|
<field name="name">处理单</field>
|
|
<field name="res_model">processing.order.approval</field>
|
|
<field name="view_mode">tree,form,search</field>
|
|
<field name="context">{'search_default_group_is_fee': 1}</field>
|
|
</record>
|
|
</odoo>
|