TMS - Sales

tms_sale
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_sale
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
COMMITTERSMaxime Chambreuil, Lois Rilo, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-transport
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:59:34
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
    - sale_management
    - sale
    - sales_team
    - account_payment
    - account
    - onboarding
    - analytic
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
product_template_form_view product.template.common.form.inherit.tms.product product.template xpath Inherits product.product_template_form_view
sale_order_line_seat_ticket_view_form trip.sale.order.line.seat.ticket.view.form seat.ticket.line form New
sale_order_line_trip_view_form trip.sale.order.line.trip.view.form sale.order.line.trip form New
sale_order_view_form sale.order.view.form.tms.sale sale.order xpath Inherits sale.view_order_form
seat_ticket_view_form seat.ticket.view.form.tms.sale seat.ticket form New
tms_order_view_form tms.order.view.form.inherit.tms.sale tms.order xpath Inherits tms.tms_order_view_form
Models touched (6)

New fields (3)
  • has_tms_order Boolean
    compute='_compute_has_tms_order'
  • tms_order_count Integer
    compute='_compute_tms_order_ids' string='Transport Orders'
  • tms_order_ids Many2many → tms.order
    compute='_compute_tms_order_ids' copy=False string='Transport orders associated to this sale' args: 'tms.order'
Public methods (5)
  • action_view_tms_order(self)
  • action_view_trip_sale_order_line(self)
  • create(self, vals)
    @api.model
  • remove_lines_with_trips(self, initial_trips, initial_line_ids, initial_quantities)
  • write(self, vals)
    @api.model

New fields (14)
  • has_trip_product Boolean
    compute='_compute_sale_order_line_tms' default=False readonly=True store=True
  • seat_ticket Boolean
    compute='_compute_sale_order_line_tms' default=False readonly=True store=True
  • tms_destination_id Many2one → res.partner
    context={'default_tms_location': True} domain="[('tms_location', '=', 'True')]" string='Destination' args: 'res.partner'
  • tms_factor Float
    compute='_compute_sale_order_line_tms' default=1 readonly=False store=True
  • tms_factor_uom Char
    compute='_compute_sale_order_line_tms' readonly=False store=True
  • tms_order_ids One2many → tms.order
    copy=False help='Transport Order generated by the sales order item' index=True args: 'tms.order', 'sale_line_id'
  • tms_origin_id Many2one → res.partner
    context={'default_tms_location': True} domain="[('tms_location', '=', 'True')]" string='Origin' args: 'res.partner'
  • tms_route_flag Boolean
    default=False string='Use Routes'
  • tms_route_id Many2one → tms.route
    string='Routes' args: 'tms.route'
  • tms_scheduled_date_end Datetime
    string='Scheduled End'
  • tms_scheduled_date_start Datetime
    string='Scheduled Start'
  • tms_ticket_ids One2many → seat.ticket
    args: 'seat.ticket', 'sale_line_id'
  • tms_trip_ticket_id Many2one → tms.order
    args: 'tms.order'
  • trip_line_ids One2many → sale.order.line.trip
    args: 'sale.order.line.trip', 'order_line_id'
Public methods (1)
  • write(self, vals)
    @api.model

New fields (8)
  • destination Many2one → res.partner
    context={'default_tms_location': True} domain="[('tms_location', '=', 'True')]" args: 'res.partner'
  • end Datetime
    string='Scheduled end'
  • has_route Boolean
    string='Use Routes'
  • order_confirmed Boolean
    readonly=True
  • order_line_id Many2one → sale.order.line
    args: 'sale.order.line'
  • origin Many2one → res.partner
    context={'default_tms_location': True} domain="[('tms_location', '=', 'True')]" args: 'res.partner'
  • route Many2one → tms.route
    args: 'tms.route'
  • start Datetime
    string='Scheduled start'
Public methods (0)

No public methods.

New fields (7)
  • available Selection
    default='available' readonly=True args: [('available', 'Available'), ('not_available', 'Not available')]
  • customer_id Many2one → res.partner
    related='sale_line_id.order_id.partner_id' args: 'res.partner'
  • name Char
    copy=False default=<expr> index='trigram' readonly=False
  • price Float
  • sale_line_id Many2one → sale.order.line
    args: 'sale.order.line'
  • sale_order_id Many2one → sale.order
    related='sale_line_id.order_id' args: 'sale.order'
  • tms_order_id Many2one → tms.order
    store=True args: 'tms.order'
Public methods (2)
  • create(self, vals)
    @api.model
  • write(self, vals)
    @api.model

New fields (4)
  • order_confirmed Boolean
    readonly=True
  • order_line_id Many2one → sale.order.line
    args: 'sale.order.line'
  • ticket_ids Many2many → seat.ticket
    options={'no_create': True} args: 'seat.ticket'
  • trip_id Many2one → tms.order
    options={'no_create': True} args: 'tms.order'
Public methods (0)

No public methods.

New fields (3)
  • sale_id Many2one → sale.order
    copy=False args: 'sale.order'
  • sale_line_id Many2one → sale.order.line
    copy=False args: 'sale.order.line'
  • seat_ticket_ids One2many → seat.ticket
    args: 'seat.ticket', 'tms_order_id'
Public methods (3)
  • action_view_sales(self)
  • create(self, vals)
    @api.model
  • 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_sale: Migration to 19.0 (#225)