TMS - Purchase

tms_purchase
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_purchase
VERSION
VERSION 1.0.0
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-ci, EdgarRetes
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
    - tms_product
odoo/odoo:
    - base
    - uom
    - fleet
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - base_geolocalize
    - stock
    - product
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
    - purchase
    - account
    - onboarding
    - analytic
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
fleet_vehicle_view_form fleet.vehicle.view.form.inherit.tms.purchase fleet.vehicle xpath Inherits fleet.fleet_vehicle_view_form
purchase_order_form purchase.order.form.inherit.tms.purchase purchase.order xpath Inherits purchase.purchase_order_form
tms_custom_purchase_order_tree tms.custom.purchase.order.tree purchase.order tree New
tms_order_view_form tms.order.view.form.inherit.tms.purchase tms.order xpath Inherits tms.tms_order_view_form
Models touched (4)

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 string='Vehicle Count'
  • 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)
    @api.model

New fields (0)

No new fields.

Public methods (0)

No public methods.

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
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/stock-logistics-transport
PULL REQUEST
PULL REQUEST[19.0][MIG] tms_purchase: Migration to 19.0 (#224)