TMS Document
tms_document · OCA/stock-logistics-transport
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.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
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis
0 migration notes
5 models
5 views
0 HTTP endpoints
Description
Generic, expiry-tracked document framework for the TMS.
Attach typed documents (license, insurance, inspection, ...) to any TMS resource (drivers, vehicles). Document validity (valid / expiring / expired) is computed from the expiry date against a configurable horizon.
A document can be flagged critical: an expired critical document on a trip's driver or vehicle blocks starting that trip.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_fleet_vehicle_documents |
fleet.vehicle.documents | fleet.vehicle | form | Inherits tms.fleet_vehicle_inherit_view_form |
view_tms_document_form |
tms.document.form | tms.document | form | New |
view_tms_document_list |
tms.document.list | tms.document | list | New |
view_tms_document_search |
tms.document.search | tms.document | search | New |
view_tms_driver_documents |
tms.driver.documents | tms.driver | form | Inherits tms.view_tms_driver_form_inherit |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (1)
-
document_idsOne2many → tms.documentcompute='_compute_document_ids'inverse='_inverse_document_ids'readonly=Falsestring='Documents' args: 'tms.document', 'res_id'
-
unlink(self)
New fields (0)
No new fields.
Public methods (1)-
unlink(self)
New fields (13)
-
activeBooleandefault=True -
company_idMany2one → res.companydefault=<expr>required=Truestring='Company' args: 'res.company' -
criticalBooleandefault=Falsehelp='If checked, an expired document blocks trip start on its holder. Documents without an expiry date are never considered expired.'tracking=True -
doc_typeSelectionrequired=Trueselection='_selection_doc_type'string='Type'tracking=True -
expiry_dateDateindex=Truetracking=True -
file_idMany2one → ir.attachmentondelete='set null'string='File' args: 'ir.attachment' -
issue_dateDatetracking=True -
nameCharrequired=Truestring='Reference'tracking=True -
notesTexttracking=True -
res_idIntegerindex=Truerequired=Truestring='Holder ID' -
res_modelCharindex=Truerequired=Truestring='Holder Model' -
res_refReferencecompute='_compute_res_ref'inverse='_inverse_res_ref'selection='_selection_res_model'string='Holder' -
stateSelectioncompute='_compute_state'store=False args: [('valid', 'Valid'), ('expiring', 'Expiring'), ('expired', 'Expired')]
-
action_replace_file(self, attachment_id) -
action_soft_delete(self) -
create_document_from_attachment(self, attachment_ids)@api.modelCreate documents from the given attachments for the holder found in the context (``default_res_model`` / ``default_res_id``). -
unlink(self)
New fields (1)
-
document_idsOne2many → tms.documentcompute='_compute_document_ids'inverse='_inverse_document_ids'readonly=Falsestring='Documents' args: 'tms.document', 'res_id'
-
unlink(self)
New fields (0)
No new fields.
Public methods (1)-
button_start_order(self)