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

114 lines
5.7 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="code"/>
<field name="name"/>
<field name="approve_state" widget="badge" decoration-danger="approve_state == 'end'" decoration-success="approve_state == 'pending'"/>
<field name="employee_ids1" 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="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 create="0">
<header>
<button name="action_print_file_processing"
type="object"
string="打印"
class="btn-primary" invisible="not work_end"/>
<!-- <button name="done_publish" string="发布" type="object" class="btn-primary"/>-->
<!-- <button name="supervising_button" string="督办" type="object" class="btn-primary" invisible="not is_supervising"/>-->
</header>
<sheet>
<group col="5">
<group>
<field name="code" string="流水号" readonly="1"/>
</group>
<group>
<field name="urgency_level" readonly="1"/>
</group>
<group>
<field name="is_chapter"/>
</group>
<group>
<field name="is_meet"/>
</group>
<group>
<field name="related_issues_id" invisible="is_meet == False"/>
</group>
</group>
<div class="col-12 text-center">
<h1>
<field name="name_title" readonly="1"/>
</h1>
</div>
<div class="oe_title">
<label for="name"/>
<h1>
<field name="name" required="1"/>
</h1>
</div>
<group string="文件基本信息">
<group col="2">
<field name="is_back" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="work_end" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="is_cold"/>
<!-- <field name="company_id1"/>-->
<field name="secret_level"/>
<field name="official_type_id" options="{'no_create': True}"/>
</group>
<group>
<field name="company_id1" invisible="not is_cold"/>
<!-- <field name="is_cold"/>-->
<field name="reference_cold" invisible="not is_cold"/>
<field name="main_flats_ids" options="{'no_create': True, 'no_open': True}" widget="many2many_tags"/>
<field name="copy_flats_ids" options="{'no_create': True, 'no_open': True}" widget="many2many_tags"/>
<field name="date"/>
<field name="issues_result" invisible="is_meet == False"/>
</group>
</group>
<group col="2" string="拟稿信息">
<group>
<field name="users_id" options="{'no_create': True}"/>
<field name="official_documents_ids" widget="preview_many2many"/>
</group>
<group>
<field name="department_id"/>
</group>
</group>
<group>
<field name="type_stamp_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}}"/>
</group>
<group string="文件内容">
<field name="main_text" string=" "/>
</group>
</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="domain">[('is_display', '=', True)]</field>
<field name="view_mode">tree,form</field>
<field name="context">{'default_order': 'completion_time desc'}</field>
</record>
<record id="yuthon_file_processing_update" model="ir.actions.server">
<field name="name">触发逻辑</field>
<field name="model_id" ref="yuthon_official.model_yuthon_file_processing"/>
<field name="binding_model_id" ref="yuthon_official.model_yuthon_file_processing"/>
<field name="state">code</field>
<field name="code">action = model.compute_workflow()</field>
</record>
</odoo>