Product Template Default Weight
This module ensures accurate weight calculation on stock operations and delivery packages when product variants have no weight defined.
By default, Odoo uses the variant weight on stock moves and delivery wizards. If a variant weight is 0, the total picking weight is silently set to 0, even when the product template has a weight defined.
This module fixes this behavior by falling back to the template weight when the variant weight is 0, ensuring correct weight calculation on:
- Stock moves (stock.move)
- Delivery package wizard (choose.delivery.package)
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Makes Odoo use the product template weight when a product variant has no weight of its own, so stock moves and delivery packages show the correct total weight instead of zero.
When a product has several variants, each variant normally carries its own weight. If a variant weight is left empty (zero), Odoo used to calculate a total weight of zero on stock operations and delivery packages, even when the product template had a weight filled in. This module changes that behaviour.
- On stock moves (
stock.move), the move weight is now computed using the variant weight, and if that is zero it falls back to the template weight. Moves with no weight at all are set to zero. - In the delivery package wizard (
choose.delivery.package), the shipping weight calculation is extended: for done quantities not yet in a package, when the variant has no weight but the template does, the template weight is used. - On the product variant form, a read-only "Weight of product template" field is shown next to the variant weight, but only when the template weight is not zero. The same information is added to the simplified variant edit view.
- On the product template form, the weight field is reorganised so it is displayed as a stored, editable value.
No new menus or reports are added; the changes appear directly on existing product, stock and delivery screens.
Depends on
Models and fields (4)
- stock.move · extends an existing model
- product.product · extends an existing modelproduct_tmpl_weight (Template Weight)
- product.template · extends an existing modelweight
- choose.delivery.package · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 16.0
Confirmed on 2026-11-03 in branch 16.0 of OCA/product-attribute.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.