Files
gzth/yuthon_issue/views/role_group_views.xml
2026-09-02 17:16:20 +08:00

32 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- 列席群组「搜索更多」列表:只显示 角色名称 / 角色说明 / 人员,其余列隐藏 -->
<record id="view_soong_user_role_group_tree_inherit_personnel" model="ir.ui.view">
<field name="name">soong.user.role.group.tree.inherit.personnel</field>
<field name="model">soong.user.role.group</field>
<field name="inherit_id" ref="soong_workflow.view_soong_user_role_group_tree"/>
<field name="arch" type="xml">
<!-- 隐藏不需要的列 -->
<xpath expr="//field[@name='number']" position="attributes">
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='start_date']" position="attributes">
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='end_date']" position="attributes">
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='create_date']" position="attributes">
<attribute name="column_invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='company_id']" position="attributes">
<attribute name="column_invisible">1</attribute>
</xpath>
<!-- 在角色说明后插入「人员」列 -->
<xpath expr="//field[@name='user_note']" position="after">
<field name="personnel_ids" widget="many2many_tags" string="人员" options="{'no_create': True}"/>
</xpath>
</field>
</record>
</odoo>