[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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user