<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="report_payslip" model="ir.ui.view">
        <field name="name">hr_payroll_input_name_report.report_payslip</field>
        <field name="inherit_id" ref="hr_payroll.report_payslip"/>
        <field name="priority" eval="2"/>
        <field name="arch" type="xml">
            <xpath expr="//tbody[last()]/tr/td[2]" position="replace">
                <td t-if="o.input_line_ids.filtered(lambda i: i.code == line.code)"><span t-field="o.input_line_ids.filtered(lambda i: i.code == line.code)[0].name"/></td>
                <td t-if="not o.input_line_ids.filtered(lambda i: i.code == line.code)"><span t-field="line.name"/></td>
            </xpath>
        </field>
    </record>

    <record id="report_payslipdetails" model="ir.ui.view">
        <field name="name">hr_payroll_input_name_report.report_payslipdetails</field>
        <field name="inherit_id" ref="hr_payroll.report_payslipdetails"/>
        <field name="priority" eval="2"/>
        <field name="arch" type="xml">
            <xpath expr="//tbody[last()]/tr/td[2]" position="replace">
                <td t-if="o.input_line_ids.filtered(lambda i: i.code == line.code)"><span t-field="o.input_line_ids.filtered(lambda i: i.code == line.code)[0].name"/></td>
                <td t-if="not o.input_line_ids.filtered(lambda i: i.code == line.code)"><span t-field="line.name"/></td>
            </xpath>
        </field>
    </record>

</odoo>