Supplier on expense line
hr_expense_line_supplier_unported · OCA/l10n-canada
-
Security25/25No findings
-
Activity0/25Last human commit 121 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
hr_expense_line— Class 'hr_expense_line' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourcehr_expense_line— Class 'hr_expense_line' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Supplier on expense line
This module adds a supplier field on the expense line and set the taxes of the employee invoice based on the fiscal position of the supplier.
The tax calculation doesn't work in v7 and v8 for an expense. The expense now create a voucher that only has one tax rate by voucher and we can't safely select one tax rate per expense form. To fix this situation the expense form should suport the taxes like a supplier invoice form and a the end of the workflow produce a voucher and the journal entries like what is done when a supplier invoice is open.
Contributors
- Jonatan Cloutier jonatan.cloutier@savoirfairelinux.com
- Maxime Chambreuil maxime.chambreuil@savoirfairelinux.com
- Sandy Carter sandy.carter@savoirfairelinux.com
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_expenses_form |
hr.expense.form.inherit | hr.expense.expense | form | Inherits hr_expense.view_expenses_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (1)-
action_invoice_create(self, cr, uid, ids)
No new fields.
Public methods (0)No public methods.
Loading…