104 lines
5.1 KiB
XML
104 lines
5.1 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="reference_cold"/>
|
|
<field name="department_id"/>
|
|
<field name="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 create="0">
|
|
<header>
|
|
<!-- <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>
|
|
<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="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="company_id1"/>
|
|
<field name="secret_level"/>
|
|
<field name="official_type_id" options="{'no_create': True}"/>
|
|
</group>
|
|
<group>
|
|
<field name="is_cold"/>
|
|
<field name="reference_cold" invisible="not is_cold"/>
|
|
<field name="main_flats_id" options="{'no_create': True, 'no_open': True}"/>
|
|
<field name="copy_flats_id" options="{'no_create': True, 'no_open': True}"/>
|
|
<field name="date"/>
|
|
<field name="issues_result" invisible="is_meet == False"/>
|
|
</group>
|
|
</group>
|
|
<group col="2" string="拟稿信息">
|
|
<group>
|
|
<field name="users_id"/>
|
|
<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}" invisible="is_chapter == 'no' or not is_chapter"/>
|
|
<field name="scope_chapter_ids" widget="many2many_tags" options="{'no_create': True, 'no_open': True}" invisible="is_chapter == 'no' or not is_chapter"/>
|
|
</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="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
</odoo> |