OdooWiki OCA HUB

Sale Order Weight

sale_order_weight folder_open OCA/sale-reporting open_in_new
Uncategorised License: GPL-3

This module adds products weight in report for sale order.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds a Weight column to the sale order PDF report and shows the total weight of the order, calculated from each product's weight and ordered quantity.

This module changes the printed quotation/sale order report so that weight information is visible to customers and staff.

  • In the product lines table of the report, a new "Weight" column appears after the unit price column. For each line, it shows the product's weight multiplied by the ordered quantity, using the weight unit configured in Odoo (for example kg) and the same decimal precision as the product weight field.
  • Below the order lines, before the notes section, the report shows a "Total Weight" line with the sum of all line weights for the whole order.
  • If a line has no weight (zero or no product), nothing is displayed for that line, and the total weight line is hidden when the total is zero.

The calculation is done through two helper methods added to sale.order and sale.order.line: the order method sums the weights of all its lines, and the line method multiplies each product's weight by its quantity. No new menus, buttons, or database fields are added; the change is limited to the sale order report template sale.report_saleorder_document.

Depends on

sale_management
Models and fields (2)
  • sale.order · extends an existing model
  • sale.order.line · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 18.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/sale-reporting.

terminal Installation and usage

OCA documentation · Odoo 18.0

Print Sale Order report.

No verified information in OCA: Installation, Configuration.

info

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.