from odoo import fields, models class HrSalaryRule(models.Model): _inherit = 'hr.salary.rule' account_debit = fields.Many2one( 'account.account', string='Debit Account', company_dependent=True, ondelete='restrict', help="GL account debited when this rule's amount is posted " "(typically expense or asset).", ) account_credit = fields.Many2one( 'account.account', string='Credit Account', company_dependent=True, ondelete='restrict', help="GL account credited when this rule's amount is posted " "(typically liability).", ) fusion_analytic_account_id = fields.Many2one( 'account.analytic.account', string='Analytic Account', company_dependent=True, help="Optional analytic account applied to both legs of the move.", ) not_computed_in_net = fields.Boolean( string="Excluded from Net", default=False, help="If checked, the result of this rule is excluded from the " "Net salary line in the journal entry. Set a dedicated " "debit/credit account so the amount is posted independently.", )