Default Analytic on Expenses
hr_expense_analytic_default · OCA/hr
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
hr_employee— Class 'hr_employee' 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_employee— Class 'hr_employee' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) 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
Default Analytic on Expenses
This module adds 2 fields:
-
Default Analytic Account on the employee form (HR Settings tab),
-
Default Analytic Account on the expense form.
If you set a Default Analytic Account on the employee, it will be copied to the Default Analytic Account of the expenses of this employee. The Default Analytic Account of the expense is used by default on each expense line.
This module has been written by Alexis de Lattre alexis.delattre@akretion.com.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_employee_form |
expense.analytic.default.employee.form | hr.employee | form | Inherits hr.view_employee_form |
view_expenses_form |
expense.analytic.default.expense.form | 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 (0)No public methods.
No new fields.
Public methods (1)-
onchange_employee_id(self, cr, uid, ids, employee_id, context=None)
Loading…
Loading…
Loading…