Files
gzth/yuthon_official/views/yuthon_sub_enterprises_view.xml
T
2026-05-15 16:13:20 +08:00

80 lines
3.7 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_sub_enterprises_tree" model="ir.ui.view">
<field name="name">yuthon.sub.enterprises.tree</field>
<field name="model">yuthon.sub.enterprises</field>
<field name="arch" type="xml">
<tree string="文件处理(子企业)">
<field name="code"/>
<field name="name"/>
<field name="approve_state" widget="badge" decoration-danger="approve_state == 'end'"
decoration-success="approve_state == 'pending'"/>
<field name="employee_ids" widget="many2many_tags"/>
<field name="users_ids" widget="many2many_tags" column_invisible="1"/>
<field name="completion_time"/>
<field name="soong_state"/>
</tree>
</field>
</record>
<record id="view_yuthon_sub_enterprises_form" model="ir.ui.view">
<field name="name">yuthon.sub.enterprises.form</field>
<field name="model">yuthon.sub.enterprises</field>
<field name="arch" type="xml">
<form string="文件处理(子企业)">
<header>
<button name="action_print_sub_enterprises"
type="object"
string="打印"
class="btn-primary" invisible="not work_end"/>
</header>
<sheet>
<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="is_send" invisible="1"/>
<field name="is_back" invisible="1"/>
<field name="work_end" invisible="1"/>
<field name="come_file_id"/>
<field name="official_partner_id" options='{"no_create": True}'/>
</group>
</group>
<group>
<field name="reason_application"/>
<field name="document_ids" widget="preview_many2many"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="yuthon_sub_enterprises_update" model="ir.actions.server">
<field name="name">触发逻辑</field>
<field name="model_id" ref="yuthon_official.model_yuthon_sub_enterprises"/>
<field name="binding_model_id" ref="yuthon_official.model_yuthon_sub_enterprises"/>
<field name="state">code</field>
<field name="code">action = model.compute_workflow()</field>
</record>
<record id="view_yuthon_sub_enterprises_action" model="ir.actions.act_window">
<field name="name">文件处理(子企业)</field>
<field name="domain">[('is_display','=', True)]</field>
<field name="res_model">yuthon.sub.enterprises</field>
<field name="view_mode">tree,form</field>
<field name="context">{'default_order': 'completion_time desc'}</field>
</record>
</odoo>