Repository
OCA/delivery-carrier · module folder · Try on Runboat
Module version
1.0.0
Category
Delivery
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/delivery-carrier
Last tracking update
2026-08-07 09:06:24
Authors
Camptocamp, Akretion, Odoo Community Association (OCA)
Maintainers
Camptocamp, Akretion, Odoo Community Association (OCA)
Committers
OCA-git-bot, oca-ci, Julien Guenat
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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 form Inherits delivery.view_delivery_carrier_form
view_picking_withcarrier_out_form stock.picking form Inherits stock_delivery.view_picking_withcarrier_out_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

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')

Loading…