Repository
OCA/l10n-switzerland · module folder · Try on Runboat
Module version
1.0.1
Category
Delivery
Folder size
0.26 MB
License
AGPL-3
Application
Yes
Auto-installable
No
Website
https://github.com/OCA/l10n-switzerland
Last tracking update
2026-08-07 07:47:26
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp
Committers
Stephane Mangin, OCA-git-bot, oca-travis, Hai Lang
Odoo dependencies
Python dependencies
quickpac, unidecode, PyPDF2
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
delivery_carrier_option_view_form delivery_base.delivery_carrier_option.view_form delivery.carrier.option form Inherits base_delivery_carrier_label.delivery_carrier_option_view_form
view_delivery_carrier_form delivery_base.delivery.carrier.view_form delivery.carrier form Inherits base_delivery_carrier_label.view_delivery_carrier_form
view_delivery_carrier_form_delivery delivery.carrier.form delivery.carrier form Inherits delivery.view_delivery_carrier_form
view_quickpac_config_settings quickpac settings res.config.settings form Inherits base.res_config_settings_view_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (6)

New fields (2)
  • allowed_tmpl_options_ids Many2many → delivery.carrier.template.option
    compute='_compute_allowed_options_ids' args: 'delivery.carrier.template.option'
  • delivery_type Selection
    ondelete={'quickpac': 'set default'} selection_add=[('quickpac', 'Quickpac')]
Public methods (3)
  • quickpac_cancel_shipment(self, pickings)
  • quickpac_get_tracking_link(self, picking)
    @api.model
  • quickpac_send_shipping(self, pickings)
    This will generate the labels for all the packages of the picking.

New fields (2)
  • allowed_tmpl_options_ids Many2many → delivery.carrier.template.option
    compute='_compute_allowed_tmpl_options_ids' store=False args: 'delivery.carrier.template.option'
  • name Char
    related='tmpl_option_id.name'
Public methods (0)

No public methods.

New fields (2)
  • name Char
    translate=True
  • quickpac_type Selection
    selection=QUICKPAC_TYPES string='Quickpac option type'
Public methods (0)

No public methods.

New fields (10)
  • quickpac_franking_license Char
    args: 'Franking License'
  • quickpac_label_layout Many2one → delivery.carrier.template.option
    domain=[('quickpac_type', '=', 'label_layout')] args: 'delivery.carrier.template.option', 'Default label layout'
  • quickpac_logo Binary
    help='Optional company logo to show on label.\nIf using an image / logo, please note the following:\n– Image width: 47 mm\n– Image height: 25 mm\n– File size: max. 30 kb\n– File format: GIF or PNG\n– Colour table: indexed colours, max. 200 colours\n– The logo will be printed rotated counter-clockwise by 90°\nWe recommend using a black and white logo for printing in the ZPL2 format.' string='Company Logo on Post labels'
  • quickpac_office Char
    help='Post office which will receive the shipped goods' string='Domicile Post office'
  • quickpac_output_format Many2one → delivery.carrier.template.option
    domain=[('quickpac_type', '=', 'output_format')] args: 'delivery.carrier.template.option', 'Default output format'
  • quickpac_password Char
    args: 'Password'
  • quickpac_resolution Many2one → delivery.carrier.template.option
    domain=[('quickpac_type', '=', 'resolution')] args: 'delivery.carrier.template.option', 'Default resolution'
  • quickpac_tracking_format Selection
    default='quickpac' args: [('quickpac', 'Use default quickpac tracking numbers'), ('picking_num', 'Use picking number with pack counter')], 'Tracking number format'
  • quickpac_tracking_url Char
    default='https://quickpac.ch/{lang}/tracking/{number}' help='Available variables to configure: \n {lang} = the lang to display (de, en, fr, it) \n {number} = the tracking number (i.e. 440010370000000034)' args: 'Tracking URL'
  • quickpac_username Char
    args: 'Username'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • onchange_carrier_id(self)