Odoo 20.0 Community · Persistent

delivery.carrier: fields, relations and API

The delivery.carrier model ("Delivery Method") is a persistent model declared by the Delivery Costs module, then extended by 5 other modules. It exposes 52 fields, 46 of them declared directly on the model; 11 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 20 JSON-2 API call.

Model identity

Technical name
delivery.carrier
Label
Delivery Method
Type
Persistent (models.Model)
SQL table
delivery_carrier
Origin module
Delivery Costs (delivery)
Extended by
stock_delivery, sale_gelato, website_sale, website_sale_stock, website_sale_collect
Default order (_order)
sequence, id
Inherits from (mixins)
website.published.multi.mixin

Model fields

46 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.

52 of 52 fields shown

Technical nameLabelTypeDetails
activeActiveboolean
allow_cash_on_deliveryCash on Delivery

Allow customers to choose Cash on Delivery as their payment method.

boolean
amountAmount

Amount of the order to benefit from a free shipping, expressed in the company currency.

float
can_generate_returnCan Generate Returnboolean
computed
carrier_descriptionDescription

A description of the delivery method that you want to communicate to your customers on the Sales Order and sales confirmation email. E.g. instructions for customers to follow.

text
translatable
company_idCompanymany2one

related: product_id.company_id

country_idsCountriesmany2many
currency_idCurrencymany2one

related: product_id.currency_id

debug_loggingDebug logging

Log requests in order to ease debugging

boolean
delivery_calendar_idDelivery Calendarmany2one

added by eCommerce (website_sale)

delivery_costCostmonetary
read-onlycomputed
delivery_currency_idDelivery Currencymany2one
computed
delivery_estimate_lead_daysDelivery Estimate Lead Daysinteger

added by eCommerce (website_sale)

delivery_estimate_range_daysDelivery Estimate Range Daysinteger

added by eCommerce (website_sale)

delivery_typeProviderselection
required

Values: base_on_rule (Based on Rules), fixed (Fixed Price)

enable_delivery_estimateEstimated Delivery

Display estimated date to your customer. Editable if range is defined.

boolean

added by eCommerce (website_sale)

excluded_tag_idsExcluded Tags

The method is NOT available if at least one product of the order has one of these tags.

many2many
fixed_marginFixed Margin

This fixed amount will be added to the shipping price.

float
fixed_priceFixed Pricefloat
computed, stored
free_overFree if order amount is above

If the order total amount (shipping excluded) is above or equal to this value, the customer benefits from a free shipping.

boolean
gelato_shipping_service_typeGelato Shipping Service Typeselection
required

Values: normal (Standard Delivery), express (Express Delivery)

added by Gelato (sale_gelato)

get_return_label_from_portalReturn Label Accessible from Customer Portal

The return label can be downloaded by the customer from the customer portal.

boolean
integration_levelIntegration Level

Action while validating Delivery Orders.

selection

Values: rate (Get Rate), rate_and_ship (Get Rate and Create Shipment)

invoice_policyInvoicing Policy

Estimated Cost: the customer will be invoiced the estimated cost of the shipping. Real Cost: the customer will be invoiced the real cost of the shipping, the cost of theshipping will be updated on the SO after the delivery.

selection
required

Values: estimated (Estimated cost)

marginMargin

This percentage will be added to the shipping price.

float
max_volumeMax Volume

If the total volume of the order is over this volume, the method won't be available.

float
max_weightMax Weight

If the total weight of the order is over this weight, the method won't be available.

float
must_have_tag_idsMust Have Tags

The method is available only if at least one product of the order has one of these tags.

many2many
nameDelivery Methodchar
requiredtranslatable
price_rule_idsPricing Rulesone2many

inverse: carrier_id

prod_environmentEnvironment

Set to True if your credentials are certified for production.

boolean
product_idDelivery Productmany2one
required
return_label_on_deliveryGenerate Return Label

The return label is automatically generated at the delivery.

boolean
route_idsRoutesmany2many

added by Delivery - Stock (stock_delivery)

sequenceSequence

Determine the display order

integer
shipping_insuranceInsurance Percentage

Shipping insurance is a service which may reimburse senders whose parcels are lost, stolen, and/or damaged in transit.

integer
state_idsStatesmany2many
support_pickup_locationsSupport Pickup Locationsboolean
computed

added by Product Availability (website_sale_stock)

supports_cash_on_deliverySupports Cash On Deliveryboolean
computed
supports_shipping_insuranceSupports Shipping Insuranceboolean
computed
tracking_urlTracking Link

This option adds a link for the customer in the portal to track their package easily. Use <shipmenttrackingnumber> as a placeholder in your URL.

char
volume_uom_nameVolume unit of measure labelchar
computed
warehouse_idsStoresmany2many

added by Click & Collect (website_sale_collect)

website_descriptionDescription for Online Quotationstext

related: product_id.description_sale

added by eCommerce (website_sale)

weight_uom_nameWeight unit of measure labelchar
computed
zip_prefix_idsZip Prefixes

Prefixes of zip codes that this delivery method applies to. Note that regular expressions can be used to support countries with varying zip code lengths, i.e. '$' can be added to end of prefix to match the exact zip (e.g. '100$' will only match '100' and not '1000')

many2many
create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

Reading this model through the API

Odoo 20 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.

curl
curl -X POST "https://your-instance.odoo.com/json/2/delivery.carrier/search_read" \
  -H "Authorization: bearer $ODOO_API_KEY" \
  -H "X-Odoo-Database: your-db" \
  -H "Content-Type: application/json" \
  -d '{"domain":[],"fields":["name","delivery_type","gelato_shipping_service_type","invoice_policy","product_id"],"limit":5}'
Python (requests)
import requests

BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}

res = requests.post(
    f"{BASE_URL}/delivery.carrier/search_read",
    headers=headers,
    json={"domain": [], "fields": ["name","delivery_type","gelato_shipping_service_type","invoice_policy","product_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())
  • External API access requires Odoo's Custom plan.
  • XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
  • The access rights and record rules of the key's user apply.

Cite this tool

Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.

<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/delivery-carrier">delivery.carrier (Odoo 20.0)</a>

Sources

Data verified on September 25, 2026 · Odoo 20.0 Community

Have an Odoo project, or want to put your ERP to work with AI? Let's talk

Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.