TMS - Expense

tms_expense
REPOSITORY
REPOSITORYOCA/stock-logistics-transport
GIT
GIThttps://github.com/OCA/stock-logistics-transport.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-transport/tree/17.0/tms_expense
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYTMS
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, EdgarRetes, Julio Santa Cruz
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-transport
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/stock-logistics-transport:
    - tms
odoo/odoo:
    - base
    - uom
    - fleet
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - base_geolocalize
    - hr_expense
    - account
    - onboarding
    - product
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - hr
    - phone_validation
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 (4)
XML IDNameModelTypeStatus
hr_employee_inherit_view_form hr.employee.inherit.view.form hr.employee xpath Inherits hr.view_employee_form
hr_expense_inherit_view_search hr.expense.inherit.view.search hr.expense xpath Inherits hr_expense.hr_expense_view_search
tms_hr_expense_inherit_view_form tms.hr.expense.inherit.view.form hr.expense xpath Inherits hr_expense.hr_expense_view_form
tms_order_inherit_view_form tms.order.inherit.view.form tms.order xpath Inherits tms.tms_order_view_form
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 (4)
  • create(self, vals)
    @api.model
  • create_driver_employee(self, driver)
  • open_commercial_entity(self)
  • 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' 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)
    @api.model
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/stock-logistics-transport
PULL REQUEST
PULL REQUEST[19.0][MIG] tms_expense: Migration to 19.0 (#226)