Delivery Carrier Option

delivery_carrier_option
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/19.0/delivery_carrier_option
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYDelivery
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, Camptocamp
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Julien Guenat
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock_delivery
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - delivery
    - payment_custom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds the concept of option on carriers that can differ
depending on the picking This module doesn't do anything by itself, it
serves as a base module for other carrier-specific modules.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
delivery_carrier_option_view_form delivery_base.delivery_carrier_option.view_form delivery.carrier.option form New
delivery_carrier_option_view_list delivery_base.delivery_carrier_option.view_list delivery.carrier.option list New
delivery_carrier_template_option_view_form delivery_base.delivery_carrier_option.view_form delivery.carrier.template.option form New
delivery_carrier_template_option_view_list delivery_base.delivery_carrier_template_option.view_list delivery.carrier.template.option list New
view_delivery_carrier_form delivery_base.delivery.carrier.view_form delivery.carrier xpath Inherits delivery.view_delivery_carrier_form
view_picking_withcarrier_out_form stock.picking xpath Inherits stock_delivery.view_picking_withcarrier_out_form
Models touched (4)

New fields (1)
  • available_option_ids One2many → delivery.carrier.option
    comodel_name='delivery.carrier.option' context={'active_test': False} inverse_name='carrier_id' string='Option'
Public methods (1)
  • default_options(self)
    Returns default and available options for a carrier

New fields (7)
  • active Boolean
    default=True
  • by_default Boolean
    help='By check, user can choose to apply this option to each Delivery Order\n using this delivery method' string='Applied by Default'
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier'
  • color Integer
    compute='_compute_color' help='Orange if the option is mandatory, otherwise no color'
  • mandatory Boolean
    help='If checked, this option is necessarily applied to the delivery order. Mandatory options show up in orange in the option widget on the picking.'
  • readonly_flag Boolean
    help='When True, help to prevent the user to modify some fields option (if attribute is defined in the view)'
  • tmpl_option_id Many2one → delivery.carrier.template.option
    comodel_name='delivery.carrier.template.option' ondelete='cascade' required=True string='Option'
Public methods (0)

No public methods.

New fields (5)
  • code Char
  • description Char
    help='Allow to define a more complete description than in the name field.'
  • name Char
  • partner_id Many2one → res.partner
    comodel_name='res.partner' string='Partner Carrier'
  • type Selection
    default='basic' selection=[('basic', 'Basic Service'), ('additional', 'Additional Service'), ('delivery', 'Delivery Instructions'), ('partner_option', 'Partner Option')] string='Option Type'
Public methods (0)

No public methods.

New fields (1)
  • option_ids Many2many → delivery.carrier.option
    comodel_name='delivery.carrier.option' compute='_compute_option_ids' readonly=False store=True string='Options'
Public methods (1)
  • onchange_option_ids(self)
    @api.onchange('option_ids')
REPOSITORY
REPOSITORYOCA/delivery-carrier
GIT
GIThttps://github.com/OCA/delivery-carrier.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/delivery-carrier/tree/18.0/delivery_carrier_option
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYDelivery
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, Camptocamp
COMMITTERS
COMMITTERSGitHub, Florian da Costa, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/delivery-carrier
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock_delivery
    - sale_stock
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - delivery
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module adds the concept of option on carriers that can differ
depending on the picking This module doesn't do anything by itself, it
serves as a base module for other carrier-specific modules.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
delivery_carrier_option_view_form delivery_base.delivery_carrier_option.view_form delivery.carrier.option form New
delivery_carrier_option_view_list delivery_base.delivery_carrier_option.view_list delivery.carrier.option list New
delivery_carrier_template_option_view_form delivery_base.delivery_carrier_option.view_form delivery.carrier.template.option form New
delivery_carrier_template_option_view_list delivery_base.delivery_carrier_template_option.view_list delivery.carrier.template.option list New
view_delivery_carrier_form delivery_base.delivery.carrier.view_form delivery.carrier xpath Inherits delivery.view_delivery_carrier_form
view_picking_withcarrier_out_form stock.picking xpath Inherits stock_delivery.view_picking_withcarrier_out_form
Models touched (4)

New fields (1)
  • available_option_ids One2many → delivery.carrier.option
    comodel_name='delivery.carrier.option' context={'active_test': False} inverse_name='carrier_id' string='Option'
Public methods (1)
  • default_options(self)
    Returns default and available options for a carrier

New fields (7)
  • active Boolean
    default=True
  • by_default Boolean
    help='By check, user can choose to apply this option to each Delivery Order\n using this delivery method' string='Applied by Default'
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier'
  • color Integer
    compute='_compute_color' help='Orange if the option is mandatory, otherwise no color'
  • mandatory Boolean
    help='If checked, this option is necessarily applied to the delivery order. Mandatory options show up in orange in the option widget on the picking.'
  • readonly_flag Boolean
    help='When True, help to prevent the user to modify some fields option (if attribute is defined in the view)'
  • tmpl_option_id Many2one → delivery.carrier.template.option
    comodel_name='delivery.carrier.template.option' ondelete='cascade' required=True string='Option'
Public methods (0)

No public methods.

New fields (5)
  • code Char
  • description Char
    help='Allow to define a more complete description than in the name field.'
  • name Char
  • partner_id Many2one → res.partner
    comodel_name='res.partner' string='Partner Carrier'
  • type Selection
    default='basic' selection=[('basic', 'Basic Service'), ('additional', 'Additional Service'), ('delivery', 'Delivery Instructions'), ('partner_option', 'Partner Option')] string='Option Type'
Public methods (0)

No public methods.

New fields (1)
  • option_ids Many2many → delivery.carrier.option
    comodel_name='delivery.carrier.option' compute='_compute_option_ids' readonly=False store=True string='Options'
Public methods (1)
  • onchange_option_ids(self)
    @api.onchange('option_ids')