from odoo import fields, models class AccountMoveLine(models.Model): _inherit = 'account.move.line' payslip_id = fields.Many2one( 'hr.payslip', string='Source Payslip', readonly=True, copy=False, ondelete='set null', index='btree_not_null', help="Payslip this journal item was generated from " "(populated by the Fusion payroll bridge for reporting).", )