TMS - Expense
tms_expense · OCA/stock-logistics-transport
Health
77/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by15/251 module depends on it
-
Maturity12/25In 2 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.07 MB
Module directory on disk
Code analysis
0 migration notes
3 models
3 views
0 HTTP endpoints
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → tms.orderargs: 'tms.order'
-
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_idMany2one → hr.employeecompute='_compute_driver_employee_id'store=Truestring='Driver Employee' args: 'hr.employee' -
expense_countIntegercompute='_compute_expenses' -
expense_idsOne2many → hr.expenseargs: 'hr.expense', 'trip_id'
-
action_view_expenses(self) -
write(self, vals)
Loading…