from odoo import fields, models class HrExpenseFLCase(models.Model): """ Extend hr.expense to link expenses to a family law case. Enables cost-tracking per case (filing fees, process server, court reporter, etc.) """ _inherit = 'hr.expense' fl_case_id = fields.Many2one( 'fl.case', string='Family Law Case', index=True, help='Link this expense to a specific family law case for cost tracking' ) expense_category = fields.Selection([ ('filing_fee', 'Court Filing Fee'), ('service_fee', 'Service of Process Fee'), ('court_reporter', 'Court Reporter'), ('mediation', 'Mediation Fee'), ('copying', 'Document Copying / Printing'), ('postage', 'Postage / Certified Mail'), ('translation', 'Translation / Interpretation'), ('expert', 'Expert Witness'), ('other', 'Other Case Expense'), ], string='Case Expense Type')