hr_expense_invoice
Enables linking vendor bills to HR expenses and handling accounting transfers when employees pay supplier invoices.
Key Features
- hr.expense: Allows selecting an existing posted vendor bill on an expense line, auto-adjusting quantity, price, taxes, currency, and date to mirror the bill while copying attachments.
- hr.expense: Provides creation of a vendor bill directly from an expense line and records transfer journal entries that move the supplier liability from the vendor to the employee when paid on own account.
- hr.expense.sheet: When posting a sheet with linked invoices, validates that all vendor bills are posted and totals match the expenses, then creates and posts the payable-to-employee transfer entries and reconciles them with the invoices for own-account payments.
- hr.expense.sheet: Derives the sheet state and payment state from linked invoice statuses or residuals so company-account sheets close immediately once invoices are paid and employee-paid sheets once transfers are cleared.
- hr.expense.sheet: Adds a Create Vendor Bill button to generate a vendor bill for selected approved expenses and a stat button to list the invoices linked to the sheet.
- account.move: Holds links to related expenses, prevents altering the total on vendor bills tied to expenses, and offers a smart button to open the expense from the bill.
- account.move.line: Adjusts reconciliation so settling the transfer entry marks related expenses and their sheets as paid.
- mail: Introduces an approval message subtype for expense sheets.