Repository
OCA/stock-logistics-transport · module folder · Try on Runboat
Module version
Category
TMS
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/stock-logistics-transport
Last tracking update
2026-08-18 17:42:13
Authors
Odoo Community Association (OCA), Open Source Integrators
Maintainers
Odoo Community Association (OCA), Open Source Integrators
Committers
Maxime Chambreuil, Weblate, OCA-git-bot, oca-ci, Volkan TAŞCI
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
tms_account
Description
The TMS - Expense module allows drivers and users to register expenses in trips. This module creates two new expense categories: Fuel and Toll expenses.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
hr_expense_inherit_view_search hr.expense.inherit.view.search hr.expense search Inherits hr_expense.hr_expense_view_search
tms_hr_expense_inherit_view_form tms.hr.expense.inherit.view.form hr.expense form Inherits hr_expense.hr_expense_view_form
tms_order_inherit_view_form tms.order.inherit.view.form tms.order form Inherits tms.tms_order_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • trip_id Many2one → tms.order
    args: 'tms.order'
Public methods (1)
  • action_view_order(self)

New fields (0)

No new fields.

Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
  • create_driver_employee(self, driver)
  • update_existing_drivers_as_employees(self)
    @api.model

New fields (3)
  • employee_id Many2one → hr.employee
    compute='_compute_driver_employee_id' store=True string='Driver Employee' args: 'hr.employee'
  • expense_count Integer
    compute='_compute_expenses'
  • expense_ids One2many → hr.expense
    args: 'hr.expense', 'trip_id'
Public methods (2)
  • action_view_expenses(self)
  • write(self, vals)

Loading…