TIP: You can type at any time to perform a new search.
Default Analytic on Expenses
hr_expense_analytic_default · OCA/hr
Security findings
Migration considerations
- Imports from the old `openerp.osv` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
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. 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=`. migration-old-style-fields · sourcehr_expense_expense— Class 'hr_expense_expense' 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. migration-old-api-base · sourcehr_expense_expense— Class 'hr_expense_expense' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/hr · module folder · Try on Runboat
- Module version
- 0.1.0
- Category
- Human Resources
- Folder size
- 0.03 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.akretion.com
- Last tracking update
- 2026-08-07 07:17:51
- Authors
- Akretion
- Maintainers
- Akretion
- Committers
- Pedro M. Baeza, Stéphane Bidoul (ACSONE)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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>.
Code Analysis
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)
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (1)-
onchange_employee_id(self, cr, uid, ids, employee_id, context=None)
Loading…
Loading…
Loading…