OdooWiki OCA HUB

Purchase Transport Mode

purchase_transport_mode folder_open OCA/purchase-workflow open_in_new
Purchase License: AGPL-3

Purchases can be received by different modes of transport. For example, the transport can be done in a truck with a loading capacity of X tonnes or Y tonnes. With this module it is possible to validate that the purchase complies with the requirements of a particular mode of transport.

auto_awesome What this module does

AI-generated from the code · Odoo 17.0

Define transport modes with rules that purchase orders must satisfy, assign a default transport mode to vendors, and see warnings on purchase orders when the rules are not met.

This module lets you create transport modes (for example, a truck with a given capacity) and attach constraints to them. Each constraint has a name, a description and a filter written as a domain on purchase orders; a purchase order satisfies the constraint only if it matches that filter.

You can assign a default transport mode to a vendor on the partner form. When you create a purchase order for that vendor, the transport mode is filled in automatically from the vendor's commercial entity, and you can still change it on the order.

On the purchase order form, a warning block appears when the order does not satisfy all the constraints of its transport mode, listing each failed constraint with its description. The check runs only when the option is enabled in Purchase settings and the order has already been saved.

A pre-configured exception rule named "Transport mode" is also added, so the standard purchase exception mechanism can flag orders whose transport mode requirements are not satisfied.

Configuration is done in Purchase settings and in a new "Purchase Transport Mode" menu under Purchase configuration, where you manage transport modes and their constraints. Purchase users get full access to these records.

Depends on

Menus it adds

menu_purchase_transport_mode_action
Models and fields (6)
  • res.company · extends an existing modelpurchase_transport_mode_contraint_enabled
  • res.partner · extends an existing modelpurchase_transport_mode_id
  • purchase.order · new modeltransport_mode_id, transport_mode_status, transport_mode_status_ok, transport_mode_status_display
  • res.config.settings · extends an existing modelpurchase_transport_mode_contraint_enabled (Validate purchase transport mode)
  • purchase.transport.mode · new modelname, constraint_ids (Purchase Transport mode Constraints)
  • purchase.transport.mode.constraint · new modelname, description, purchase_domain (Source Purchase Domain), purchase_transport_mode_id

Text generated by AI (DeepSeek) from reading the Odoo 17.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 2 confirmed, 7 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/purchase-workflow.

terminal Installation and usage

OCA documentation · Odoo 17.0

To use this module, you need to:

  • In Purchase settings enable purchase transport mode validation
  • Create a transport modes with contraints applied on PO
  • Select transport mode on PO

If the transport requirements are not met, a message in yellow will be displayed at the top of the form.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.