Repository
OCA/hr-expense · module folder · Try on Runboat
Module version
1.0.0
Category
Human Resources
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/hr-expense
Last tracking update
2026-08-07 08:42:58
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Odoo Community Association (OCA), Ecosoft
Committers
Saran440, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows you attach several customizable exceptions to your
expense report in a way that you can filter orders by exceptions type
and fix them.

This is especially useful in an scenario for mass expense import,
because it's likely some expenses have errors when you import them (like
product not found in Odoo, wrong line format etc.)

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_expense_sheet_view_search hr_expense_exception.hr_expense_sheet_view_search hr.expense.sheet search Inherits hr_expense.hr_expense_sheet_view_search
view_hr_expense_sheet_form hr_expense_exception.view_hr_expense_sheet_form hr.expense.sheet form Inherits hr_expense.view_hr_expense_sheet_form
view_hr_expense_sheet_tree hr_expense_exception.view_hr_expense_sheet_tree hr.expense.sheet tree Inherits hr_expense.view_hr_expense_sheet_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (2)
  • expense_sheet_ids Many2many → hr.expense.sheet
    comodel_name='hr.expense.sheet' string='Expense Reports'
  • model Selection
    ondelete={'hr.expense.sheet': 'cascade', 'hr.expense': 'cascade'} selection_add=[('hr.expense.sheet', 'Expense Report'), ('hr.expense', 'Expense')]
Public methods (0)

No public methods.

New fields (1)
  • related_model_id Many2one → hr.expense.sheet
    args: 'hr.expense.sheet', 'Expense Report'
Public methods (1)
  • action_confirm(self)

New fields (1)
  • ignore_exception Boolean
    related='sheet_id.ignore_exception' store=True string='Ignore Exceptions'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (6)
  • action_reset_expense_sheets(self)
  • action_submit_sheet(self)
  • detect_exceptions(self)
  • expense_check_exception(self)
    @api.constrains('ignore_exception', 'expense_line_ids', 'state')
  • onchange_ignore_exception(self)
    @api.onchange('expense_line_ids')
  • test_all_draft_expenses(self)
    @api.model

Loading…

Loading…