Files
gzth/yuthon_official/views/yuthon_file_processing_views.xml
T
2025-12-15 18:47:58 +08:00

84 lines
3.9 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="yuthon_file_processing_tree" model="ir.ui.view">
<field name="name">yuthon.file.processing.tree</field>
<field name="model">yuthon.file.processing</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="department_id"/>
<field name="time_date"/>
</tree>
</field>
</record>
<record id="yuthon_file_processing_form" model="ir.ui.view">
<field name="name">yuthon.file.processing.form</field>
<field name="model">yuthon.file.processing</field>
<field name="arch" type="xml">
<form>
<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 != 'extra_urgent'"/>
<group col="4">
<group>
<field name="code" string="流水号" readonly="1"/>
</group>
<group>
<field name="urgency_level" readonly="1"/>
</group>
<group>
<field name="is_issues"/>
</group>
<group>
<field name="related_issues_id" invisible="not is_issues"/>
</group>
</group>
<div class="col-12 text-center">
<h1>
<field name="name_title" readonly="1"/>
</h1>
</div>
<group string="审批事项">
<field name="is_back" invisible="1"/>
<field name="users_id"/>
<field name="company_id" invisible="1"/>
<field name="department_id" invisible="1"/>
<field name="work_end" invisible="1"/>
<field name="name" required="1"/>
<field name="main_text"/>
<field name="issues_result" invisible="is_issues == False"/>
<field name="official_documents_ids" widget="preview_many2many"/>
</group>
<group string="行政信息">
<group col="2">
<field name="official_partner_id"/>
<field name="secret_level"/>
<field name="time_date"/>
<field name="remarks"/>
</group>
<group>
<field name="is_supervising"/>
<field name="deadline" invisible="not is_supervising"/>
<field name="done_date" invisible="not is_supervising"/>
</group>
</group>
<notebook>
<page string="督办事项" invisible="not is_supervising">
<field name="workflow_inspector_ids"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="yuthon_file_processing_action" model="ir.actions.act_window">
<field name="name">文件处理</field>
<field name="res_model">yuthon.file.processing</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>