TIP: You can type at any time to perform a new search.
TMS Document
tms_document · OCA/stock-logistics-transport
- Repository
- OCA/stock-logistics-transport · module folder · Try on Runboat
- Module version
- 1.0.4
- Category
- TMS
- Folder size
- 0.09 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/stock-logistics-transport
- Last tracking update
- 2026-08-27 05:25:14
- Authors
- Odoo Community Association (OCA), Volkan Taşçı
- Maintainers
- Odoo Community Association (OCA), Volkan Taşçı
- Committers
- OCA-git-bot, oca-ci, Volkan TAŞCI
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- 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.
Code Analysis ⓘ
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)