[FIX] hr_luncheon_voucher: add button to existing header in employee tree view

The view inheritance was creating a duplicate <header> inside <list>
This commit is contained in:
Stéphan Sainléger
2026-07-21 14:59:22 +02:00
parent de80996484
commit 7996ecc501

View File

@@ -62,15 +62,13 @@
<field name="model">hr.employee</field> <field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_tree" /> <field name="inherit_id" ref="hr.view_employee_tree" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//list" position="inside"> <xpath expr="//header" position="inside">
<header>
<button <button
type="object" type="object"
name="action_lv_allocations_requests_wizard" name="action_lv_allocations_requests_wizard"
string="Generate Luncheon Vouchers Allocations" string="Generate Luncheon Vouchers Allocations"
class="btn-primary" class="btn-primary"
/> />
</header>
</xpath> </xpath>
</field> </field>
</record> </record>