Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Delivery - Stock

Entity: stock.quant.package

Compute Method: _compute_weight

Inputs Method Outputs
packages_weight = self.sudo()._get_weight(self.env.context.get('picking_id'))
for package in self:
            package.weight = packages_weight[package]

Back to entity