Repository
OCA/delivery-carrier · module folder · Try on Runboat
Module version
1.1.1
Category
Carrier
Folder size
0.13 MB
License
AGPL-3
Application
No
Auto-installable
Yes
Website
https://github.com/OCA/delivery-carrier
Last tracking update
2026-08-07 07:47:34
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp
Committers
Pedro M. Baeza, Akim Juillerat, Stephane Mangin, Weblate, OCA-git-bot, oca-travis, oca-git-bot, Khoi Vo
Odoo dependencies
Python dependencies
PyPDF2
System dependencies
None
Required by
l10n_ch_delivery_carrier_label_quickpac
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_batch_picking_form stock.picking.batch.form stock.picking.batch form Inherits stock_picking_batch_extended.stock_batch_picking_form
view_delivery_carrier_label_generate Generate Carriers Labels delivery.carrier.label.generate form New
view_picking_batch_apply_carrier picking.batch.apply.carrier.form picking.batch.apply.carrier form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • batch_ids Many2many → stock.picking.batch
    default=_get_batch_ids string='Picking Batch' args: 'stock.picking.batch'
  • generate_new_labels Boolean
    default=False help='If this option is used, new labels will be generated for the packs even if they already have one.\nThe default is to use the existing label.' args: 'Generate new labels'
Public methods (1)
  • action_generate_labels(self)
    Call the creation of the delivery carrier label of the missing labels and get the existing ones Then merge all of them in a single PDF

New fields (1)
  • carrier_id Many2one → delivery.carrier
    required=True string='Carrier' args: 'delivery.carrier'
Public methods (1)
  • apply(self)

New fields (2)
  • carrier_id Many2one → delivery.carrier
    states={'done': [('readonly', True)]} args: 'delivery.carrier', 'Carrier'
  • option_ids Many2many → delivery.carrier.option
    string='Options' args: 'delivery.carrier.option'
Public methods (6)
  • action_set_options(self)
    Apply options to picking of the batch This will replace all carrier options in picking
  • carrier_id_change(self)
    @api.onchange('carrier_id')
    Inherit this method in your module
  • create(self, values)
    @api.model
    Set the default options when the delivery method is set on creation So we are sure that the options are always in line with the current delivery method.
  • option_ids_change(self)
    @api.onchange('option_ids')
  • purge_tracking_references(self)
    Purge tracking for each picking and destination package
  • write(self, values)

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
552 days ago
Last activity
91 days ago
Repository
OCA/delivery-carrier
Pull request
[18.0][MIG] delivery_carrier_label_batch: Migration to 18.0 (#984)