Files
gzth/yuthon_trade/views/yuthon_trade_premium.xml
T
2025-05-30 20:55:53 +08:00

72 lines
3.3 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_premium_tree" model="ir.ui.view">
<field name="name">yuthon.trade.premium.tree</field>
<field name="model">yuthon.trade.premium</field>
<field name="arch" type="xml">
<tree string="缴保申请表">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_premium_form" model="ir.ui.view">
<field name="name">yuthon.trade.premium.form</field>
<field name="model">yuthon.trade.premium</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="审批事项">
<group>
<field name="name"/>
<field name="users_id"/>
<field name="department_id" invisible="1"/>
</group>
</group>
<group>
<field name="insurance_id"/>
<field name="employee_ids" widget="many2many_tags" options="{'no_create': True}"/>
<field name="number"/>
<field name="fee"/>
<field name="total"/>
<label for="start_date"/>
<div class="d-inline-flex w-100">
<field name="start_date" string="保期:" class="me-2"
style="max-width: 10rem !important;"/>至
<field name="end_date" string=" " class="ms-2"
style="max-width: 10rem !important;"/>
</div>
<field name="text"/>
<field name="documents_ids" widget="preview_many2many"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_premium" model="ir.actions.act_window">
<field name="name">缴保申请表</field>
<field name="res_model">yuthon.trade.premium</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>