Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 12 months ago
  • Required by25/25
    6 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 12.0

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

Security findings
Grave / minor (static analysis)
Required by
6
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.07 MB
Module directory on disk
Code analysis 0 migration notes 5 models 5 views 0 HTTP endpoints

Description

This module recovers the number of packages field that was present in previous versions of Odoo, that can be either be set manually by the user, but also allows to be computed when the delivery packages flow is used.

This field can be used by delivery carrier extensions that need such info to rate the shipment, print the labels, etc.

Dependencies

Code analysis

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

Views touched 5

XML IDNameModelTypeStatus
delivery_package_number_document delivery_package_number_document ir.ui.view qweb New
delivery_package_number_report delivery_package_number_report ir.ui.view qweb New
view_number_package_validate stock.number.package.validate.wizard stock.number.package.validate.wizard form New
view_picking_type_form stock.picking.type form Inherits stock.view_picking_type_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 5

New fields (0)

No new fields.

Public methods (1)
  • process(self)

New fields (3)
  • number_of_packages Integer
    readonly=False related='picking_id.number_of_packages'
  • picking_id Many2one → stock.picking
    comodel_name='stock.picking'
  • wiz_id Many2one → stock.number.package.validate.wizard
    comodel_name='stock.number.package.validate.wizard' readonly=True
Public methods (0)

No public methods.

New fields (4)
  • number_of_packages Integer
    help='Set the number of packages for this picking(s)'
  • pick_ids Many2many → stock.picking
    args: 'stock.picking', 'stock_picking_number_package_rel'
  • print_package_label Boolean
    compute='_compute_print_package_label' readonly=False store=True
  • stock_number_package_validation_line_ids One2many → stock.number.package.validate.line.wizard
    comodel_name='stock.number.package.validate.line.wizard' compute='_compute_stock_number_package_validation_line_ids' inverse_name='wiz_id' readonly=False store=True
Public methods (1)
  • process(self)

New fields (2)
  • ask_number_of_packages Boolean
    compute='_compute_ask_number_of_packages'
  • number_of_packages Integer
    compute='_compute_number_of_packages' copy=False default=0 readonly=False store=True string='Number of Packages'
Public methods (0)

No public methods.

New fields (3)
  • avoid_set_number_of_packages Boolean
  • force_set_number_of_packages Boolean
  • report_number_of_packages Many2one → ir.actions.report
    default=<expr> domain=[('model', '=', 'stock.picking')] args: 'ir.actions.report'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…