Sale Order Weight

Weights in kg and lb added to the Sale Order form

https://kastor.lab.numigi.net/web/image/product.template/1338/image_1920?unique=0a81b40
  • Odoo Version

Conditions générales
Garantie satisfait ou remboursé de 30 jours
Expédition : 2-3 jours ouvrables

Sale Order Weight

This module adds two field to the records of the model Sale Order:

  • weight_in_kg: Weight of the order (kg)
  • weight_in_lb: Weight of the order (lb)

These two fields will be computed every time a user creates/updates a sale order line.

The weights are computed per sale order line, then summed to get the weights of the order.

Per Sale order Line, the weights are computed with the following steps:

  • convert the sold quantity to the product's UoM: qty_in_product_uom
  • get the weights from the products: weight_kg, weight_in_uom
  • if the products already has it's weight defined in lb for the weight_in_uom, then use that value, otherwise convert from the kg weight of the product to a weight in lb
  • calculate the weights per sale order line by multiplying the qty_in_product_uom by the weight_kg, and qty_in_product_uom by the weight_lb
static/description/sale_order_weight.png

Configuration

No configuration required apart from module installation.

Contributors

More information