Files
gzth/soong_workflow/views/kklw_workflow_approval_views.xml
T
2025-05-28 14:20:59 +08:00

44 lines
2.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="kklw_workflow_approval_view_kanban" model="ir.ui.view">
<field name="name">审批</field>
<field name="model">soong.workflow</field>
<field name="arch" type="xml">
<kanban create="false" class="o_modules_kanban">
<field name="name"/>
<field name="id"/>
<field name="text"/>
<templates>
<t t-name="kanban-box">
<div class="oe_module_vignette">
<div class="oe_module_desc" style="display: flex; justify-content: space-between;">
<div class="o_left_container" style="flex: 1; max-width: 50%;">
<h4 class="o_kanban_record_title">
<field name="name"/>
</h4>
<p class="oe_module_name">
<br/>
</p>
<div class="oe_module_action" t-if="!selection_mode">
<button type="object" class="btn btn-primary btn-sm" name="create_request">新建审批</button>
</div>
</div>
<div class="o_right_container" style="flex: 1; max-width: 55%; margin-left: 16px; border-left: 1px solid #eee; padding-left: 16px;">
<field name="text" options="{'mode': 'readonly'}" style="white-space: normal; word-wrap: break-word;"/>
</div>
</div>
</div>
</t>
</templates>
</kanban>
</field>
</record>
<record id="action_kklw_workflow_approval_request" model="ir.actions.act_window">
<field name="name">审批</field>
<field name="res_model">soong.workflow</field>
<field name="view_mode">kanban,tree</field>
<field name="domain">[('is_user_department_role','=',True)]</field>
</record>
</odoo>