Sequence on expense line
hr_expense_line_sequence · OCA/connector-accountedge
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 101 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
GPL-3 or any later version
No conflicts with its dependencies
Folder size
0.01 MB
Module directory on disk
Code analysis
3 migration notes
1 model
1 view
0 HTTP endpoints
Migration considerations
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. 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=`. (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
This module adds a sequence number field on the expense line.
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_tree |
hr.expense.line.tree.inherit | hr.expense.line | tree | Inherits hr_expense.view_expenses_line_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (0)
No new fields.
Public methods (3)-
create(self, cr, user, vals, context=None)Overwriting the create() method to update the line numbers of the expense the expense line belongs to -
unlink(self, cr, uid, ids, context=None)Overwriting the unlink() method to update the line numbers of the expense the expense lines belong to -
update_sequences(self, cr, uid, expense, context=None)Updating the sequences (line numbers) of an hr.expense object.
Loading…
Loading…
Loading…