Skip to content
Health
62/100
fair
  • Security25/25
    No findings
  • Activity12/25
    Last human commit 22 months ago
  • Required by20/25
    3 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
3
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis 0 migration notes 3 models 6 views 0 HTTP endpoints

Description

This module is kind of a technical module as it adds a new model inheriting the ir.attachment which purpose is to isolate the shipping label and eventually add some specific fields for this kind of document. The final main goal beeing to identifiy these shipping labels from the other documents attached to a picking in order to send it to the right printer.

Dependencies

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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 3

New fields (0)

No new fields.

Public methods (1)
  • send_shipping(self, pickings)
    Handle labels and if we have them. Expected format is {'labels': [{}, ...]} The dicts are input for stock.picking#attach_label

New fields (3)
  • attachment_id Many2one → ir.attachment
    comodel_name='ir.attachment' ondelete='cascade' required=True string='Attachement'
  • file_type Char
    default='pdf' string='File type'
  • package_id Many2one → stock.quant.package
    comodel_name='stock.quant.package' string='Pack'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • attach_shipping_label(self, label)
    Attach a label returned by send_to_shipper to a picking
  • get_shipping_label_values(self, label)