Skip to content
Health
77/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 17.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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.08 MB
Module directory on disk
Code analysis 0 migration notes 5 models 5 views 0 HTTP endpoints

Description

The TMS - Purchase module manages purchase requests to drivers and other suppliers. This module provides features such as create purchase orders from trips and purchase vehicles.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
tms_account

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

XML IDNameModelTypeStatus
fleet_vehicle_view_form fleet.vehicle.view.form.inherit.tms.purchase fleet.vehicle form Inherits fleet.fleet_vehicle_view_form
purchase_order_form purchase.order.form.inherit.tms.purchase purchase.order form Inherits purchase.purchase_order_form
tms_custom_purchase_order_tree tms.custom.purchase.order.tree purchase.order list New
tms_order_view_form tms.order.view.form.inherit.tms.purchase tms.order form Inherits tms.tms_order_view_form
view_tms_driver_form_inherit_purchase tms.driver.form.inherit.purchase 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)
  • purchase_order_id Many2one → purchase.order
    args: 'purchase.order'
Public methods (1)
  • action_view_order(self)

New fields (4)
  • order_vehicle_count Integer
    compute='_compute_order_vehicle_count' copy=False default=0 store=True
  • trip_id Many2one → tms.order
    args: 'tms.order'
  • vehicle_count Integer
    compute='_compute_vehicle_count' readonly=True
  • vehicle_ids One2many → fleet.vehicle
    args: 'fleet.vehicle', 'purchase_order_id'
Public methods (3)
  • action_view_order(self)
  • action_view_vehicle(self, vehicles=False)
    This function returns an action that display existing vehicles from given purchase order ids. When only one found, show the vehicle immediately.
  • action_view_vehicles_button(self)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_view_purchase_orders(self)

New fields (2)
  • purchase_ids One2many → purchase.order
    store=True args: 'purchase.order', 'trip_id'
  • purchase_order_count Integer
    compute='_compute_purchase_order_count' readonly=True
Public methods (2)
  • action_view_purchase_orders(self)
  • create(self, vals)
    @api.model

Loading…