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.package

Compute Method: _compute_weight_is_kg

View 19.0
Inputs Method Outputs
+ self.weight_is_kg = False
+ uom_id = self.env['product.template']._get_weight_uom_id_from_ir_config_parameter()
+ if uom_id == self.env.ref('uom.product_uom_kgm'):
+             self.weight_is_kg = True
+ self.weight_uom_rounding = uom_id.rounding
  • weight_is_kg
  • weight_uom_rounding

Back to entity