Equipments
hr_equipment · odoo/odoo
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 107 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
3.03 MB
Module directory on disk
Code analysis
13 migration notes
5 models
14 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
HrEquipment— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceHrEquipment— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceHrEquipmentCategory— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (4 methods) (3 occurrences in this file) migration-api-multi-one · sourceHrEquipmentConfigSettings— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourcehr.equipment— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: user_id, employee_id, department_id, category_id, assign_date. migration-track-visibilityhr.equipment.category— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: user_id. migration-track-visibilityhr.equipment.request— Migrating to 13.0: `track_visibility` was replaced by `tracking`; the old kwarg is ignored. Fields: request_date, user_id, stage_id, kanban_state. migration-track-visibilityhr_equipment_request_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (3 occurrences in this file) migration-view-attrs-states · sourcehr_equipment_request_view_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (4 occurrences in this file) migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
hr_equipment_request_view_kanban— Migrating to 15.0: QWeb `t-raw` is deprecated: use `t-out`; for intended HTML, sanitize it at its source, since `Markup` alone does not sanitize. (2 occurrences in this file) migration-view-t-raw · 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
Track employees' equipment and manage maintenance requests.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 14
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
hr_equipment_category_view_form |
hr.equipment.category.form | hr.equipment.category | form | New |
hr_equipment_category_view_search |
hr.equipment.category.search | hr.equipment.category | search | New |
hr_equipment_category_view_tree |
hr.equipment.category.tree | hr.equipment.category | tree | New |
hr_equipment_config_settings_view_form |
hr.equipment.config.settings | hr.equipment.config.settings | form | New |
hr_equipment_request_view_form |
hr.equipment.request.form | hr.equipment.request | form | New |
hr_equipment_request_view_kanban |
hr.equipment.request.kanban | hr.equipment.request | kanban | New |
hr_equipment_request_view_search |
hr.equipment.request.search | hr.equipment.request | search | New |
hr_equipment_request_view_tree |
hr.equipment.request.tree | hr.equipment.request | tree | New |
hr_equipment_stage_view_search |
hr.equipment.stage.search | hr.equipment.stage | search | New |
hr_equipment_stage_view_tree |
hr.equipment.stage.tree | hr.equipment.stage | tree | New |
hr_equipment_view_form |
hr.equipment.form | hr.equipment | form | New |
hr_equipment_view_kanban |
hr.equipment.kanban | hr.equipment | kanban | New |
hr_equipment_view_search |
hr.equipment.search | hr.equipment | search | New |
hr_equipment_view_tree |
hr.equipment.tree | hr.equipment | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (20)
-
assign_dateDatetrack_visibility='onchange' args: 'Assigned Date' -
category_idMany2one → hr.equipment.categorystring='Asset Category'track_visibility='onchange' args: 'hr.equipment.category' -
colorIntegerargs: 'Color Index' -
costFloatargs: 'Cost' -
department_idMany2one → hr.departmentstring='Assigned to Department'track_visibility='onchange' args: 'hr.department' -
employee_idMany2one → hr.employeestring='Assigned to Employee'track_visibility='onchange' args: 'hr.employee' -
equipment_assign_toSelectiondefault='employee'required=Truestring='Used By' args: [('department', 'Department'), ('employee', 'Employee')] -
locationCharargs: 'Location' -
maintenance_countIntegercompute='_compute_maintenance_count'store=Truestring='Maintenance' -
maintenance_idsOne2many → hr.equipment.requestargs: 'hr.equipment.request', 'equipment_id' -
maintenance_open_countIntegercompute='_compute_maintenance_count'store=Truestring='Current Maintenance' -
modelCharargs: 'Model' -
nameCharrequired=Truetranslate=True args: 'Asset Name' -
noteTextargs: 'Note' -
partner_idMany2one → res.partnerdomain="[('supplier', '=', 1)]"string='Vendor' args: 'res.partner' -
partner_refCharargs: 'Vendor Reference' -
scrap_dateDateargs: 'Scrap Date' -
serial_noCharcopy=False args: 'Serial Number' -
user_idMany2one → res.usersstring='Technician'track_visibility='onchange' args: 'res.users' -
warrantyDateargs: 'Warranty'
-
create(self, vals)@api.model -
name_get(self)@api.multi -
name_search(self, name, args=None, operator='ilike', limit=100)@api.model -
write(self, vals)@api.multi
New fields (10)
-
alias_idMany2one → mail.aliashelp='Email alias for this equipment category. New emails will automatically create new maintenance request for this equipment category.'ondelete='cascade'required=True args: 'mail.alias', 'Alias' -
colorIntegerargs: 'Color Index' -
equipment_countIntegercompute='_compute_equipment_count'string='Equipment' -
equipment_idsOne2many → hr.equipmentcopy=Falsestring='Equipments' args: 'hr.equipment', 'category_id' -
foldBooleancompute='_compute_fold'store=Truestring='Folded in Maintenance Pipe' -
maintenance_countIntegercompute='_compute_maintenance_count'string='Maintenance' -
maintenance_idsOne2many → hr.equipment.requestcopy=False args: 'hr.equipment.request', 'category_id' -
nameCharrequired=Truetranslate=True args: 'Category Name' -
noteTexttranslate=True args: 'Comments' -
user_idMany2one → res.usersdefault=<expr>track_visibility='onchange' args: 'res.users', 'Responsible'
-
create(self, vals)@api.model -
unlink(self)@api.multi
New fields (2)
-
alias_domainCharargs: 'Alias Domain' -
equipment_alias_prefixCharargs: 'Use the following alias to report internal equipment issue'
-
get_default_alias_domain(self)@api.multi -
get_default_alias_equipment(self)@api.multi -
set_default_alias_equipment(self)@api.multi
New fields (14)
-
activeBooleandefault=Truehelp='Set active to false to hide the maintenance request without deleting it.' -
category_idMany2one → hr.equipment.categorystring='Category' args: 'hr.equipment.category' -
close_dateDateargs: 'Close Date' -
colorIntegerargs: 'Color Index' -
department_idMany2one → hr.departmentstring='Department' args: 'hr.department' -
descriptionTextargs: 'Description' -
employee_idMany2one → hr.employeedefault=_default_employee_getstring='Employee' args: 'hr.employee' -
equipment_idMany2one → hr.equipmentindex=Truestring='Asset' args: 'hr.equipment' -
kanban_stateSelectiondefault='normal'required=Truestring='Kanban State'track_visibility='onchange' args: [('normal', 'In Progress'), ('blocked', 'Blocked'), ('done', 'Ready for next stage')] -
nameCharrequired=True args: 'Subjects' -
prioritySelectionstring='Priority' args: [('0', 'Very Low'), ('1', 'Low'), ('2', 'Normal'), ('3', 'High')] -
request_dateDatedefault=fields.Date.context_todaytrack_visibility='onchange' args: 'Request Date' -
stage_idMany2one → hr.equipment.stagedefault=_default_stagestring='Stage'track_visibility='onchange' args: 'hr.equipment.stage' -
user_idMany2one → res.usersstring='Assigned to'track_visibility='onchange' args: 'res.users'
-
archive_equipment_request(self)@api.multi -
create(self, vals)@api.model -
message_new(self, msg, custom_values=None)@api.modelOverrides mail_thread message_new that is called by the mailgateway through message_process. This override updates the document according to the email. -
onchange_category_id(self)@api.onchange('category_id') -
onchange_department_or_employee_id(self)@api.onchange('employee_id', 'department_id') -
onchange_equipment_id(self)@api.onchange('equipment_id') -
reset_equipment_request(self)@api.multiReinsert the equipment request into the maintenance pipe in the first stage -
write(self, vals)@api.multi
New fields (4)
-
doneBooleanargs: 'Request Done' -
foldBooleanargs: 'Folded in Recruitment Pipe' -
nameCharrequired=Truetranslate=True args: 'Name' -
sequenceIntegerdefault=20 args: 'Sequence'
No public methods.