This commit is contained in:
李鹏宇
2026-07-21 17:00:57 +08:00
parent 6383967e5c
commit ecb2a3f15a
@@ -629,30 +629,22 @@
</tree>
</field>
</record>
<!--手机转交:无头像看板视图(Odoo 移动端 SelectCreateDialog 强制使用 kanban,故此视图专供手机端弹窗) -->
<!--手机转交看板(去头像版):继承原始员工看板,去掉头像展示 -->
<record id="view_employee_phone_kanban_no_avatar" model="ir.ui.view">
<field name="name">hr.employee.kanban.phone.no.avatar</field>
<field name="model">hr.employee</field>
<field name="priority" eval="30"/>
<field name="inherit_id" ref="hr.hr_kanban_view_employees"/>
<field name="arch" type="xml">
<kanban>
<field name="name"/>
<field name="department_id"/>
<templates>
<t t-name="card">
<div class="oe_kanban_global_click">
<div class="oe_kanban_details">
<strong class="o_kanban_record_title">
<field name="name"/>
</strong>
<div class="o_kanban_record_bottom">
<field name="department_id"/>
</div>
</div>
</div>
</t>
</templates>
</kanban>
<!-- 移除看板的 o_kanban_record_has_image_fill 类,去掉左侧图片预留空间 -->
<xpath expr="//div[hasclass('oe_kanban_global_click')]" position="attributes">
<attribute name="class">oe_kanban_global_click o_hr_kanban_record</attribute>
</xpath>
<!-- 移除头像原图区块 -->
<xpath expr="//div[hasclass('oe_kanban_global_click')]/t[@t-if]" position="replace"/>
<!-- 移除头像缩略图区块 -->
<xpath expr="//div[hasclass('oe_kanban_global_click')]/t[@t-elif]" position="replace"/>
<!-- 移除默认头像图标(无图片时的SVG占位) -->
<xpath expr="//div[hasclass('oe_kanban_global_click')]/div[@t-else]" position="replace"/>
</field>
</record>
<record id="view_employee_inherit_filter" model="ir.ui.view">