Supplier invoices on HR expenses
hr_expense_invoice · OCA/hr-expense
OCA/hr 8.0–12.0 → OCA/hr-expense 13.0–18.0
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 8 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 11 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
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.13 MB
Module directory on disk
Code analysis
0 migration notes
4 models
3 views
0 HTTP endpoints
Description
This module should be used when a supplier invoice is paid by an employee. It allows to set a supplier invoice for each expense line, adding the corresponding journal items to transfer the debt to the employee.
There are 2 ways to reference expense to invoice.
- On expense, directly select one invoice.
- On expense report, use button "Create Vendor Bill" to create one invoice for multiple expenses.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_expense_sheet_form_view_inherit_sale_expense |
hr.expense.sheet.form.inherit.sale.expense | hr.expense.sheet | form | Inherits hr_expense.view_hr_expense_sheet_form |
hr_expense_view_form |
hr.expense.form | hr.expense | form | Inherits hr_expense.hr_expense_view_form |
view_move_form |
account.move.form - Add expense smart-button | account.move | form | Inherits account.view_move_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (2)
-
expense_idsOne2many → hr.expensecomodel_name='hr.expense'inverse_name='invoice_id'string='Expenses' -
source_invoice_expense_idMany2one → hr.expensecomodel_name='hr.expense'help='Reference to the expense with a linked invoice that generated thistransfer journal entry'
-
action_force_register_payment(self) -
action_view_expense(self)
New fields (0)
No new fields.
Public methods (1)-
reconcile(self)Mark expenses paid by employee having invoice when reconciling them.
New fields (4)
-
amount_residualMonetarycompute='_compute_amount_residual'store=Truestring='Amount Due' -
invoice_idMany2one → account.movecomodel_name='account.move'copy=Falsedomain=[('move_type', '=', 'in_invoice'), ('state', '=', 'posted'), ('payment_state', '=', 'not_paid'), ('expense_ids', '=', False)]string='Vendor Bill' -
sheet_id_stateSelectionrelated='sheet_id.state'string='Sheet state' -
transfer_move_idsOne2many → account.movecomodel_name='account.move'inverse_name='source_invoice_expense_id'
-
action_expense_create_invoice(self)
New fields (1)
-
invoice_countIntegercompute='_compute_invoice_count'
-
action_sheet_move_post(self) -
action_view_invoices(self) -
get_expense_sheets_with_invoices(self, func) -
set_to_paid(self)Don't mark sheet as paid when reconciling invoices.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…