Skip to content
Health
73/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 2 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.06 MB
Module directory on disk
Code analysis 0 migration notes 4 models 3 views 0 HTTP endpoints

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.)

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…