OdooWiki OCA HUB

Sustainability Sale

sustainability_sale folder_open OCA/sustainability open_in_new
Sales/Sales License: AGPL-3

This module can be activated from Sustainability settings to add CO2e tracking on sale orders.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds CO2 equivalent and CO2 uncertainty tracking to sale orders and their lines, so users can see the carbon footprint of a quotation or sales order and lock or recompute those values.

This module connects the sustainability carbon tracking with Sales. On a sales order form, two new totals appear next to the usual sale totals: "CO2 Equivalent" and "CO2 Uncertainty", shown in the carbon currency.

In the order lines list, three optional columns can be displayed: CO2 Equivalent, CO2 Uncertainty and the uncertainty percentage. Each line also gets a lock/unlock button: once a line's carbon value is locked, those fields become read-only, and a question-mark button opens the carbon origin details. A "Re-compute CO2" action is available on sale orders to force recalculation of the carbon values.

Business rules shown by the code: - Order-level CO2 is the sum of its lines' CO2 values; uncertainty follows the sign of the order's total. - All lines of an order must share the same carbon currency, otherwise an error is raised. - Carbon values are automatically recomputed while the order is in draft or sent state, based on partner, product, quantity, subtotal, order date and currency. - Section and note lines are excluded from carbon computation. - When a locked line is invoiced, its carbon values, uncertainty percentage and lock status are copied to the invoice line.

The carbon origin list gains a "Sale Line" column, and the partner form shows the carbon page. It touches sale.order, sale.order.line, carbon.line.origin and res.partner.

Depends on

Models and fields (3)
  • sale.order · new modelcarbon_debt (CO2 Equivalent), carbon_currency_id, carbon_uncertainty_value (CO2 Uncertainty)
  • sale.order.line · new model
  • carbon.line.origin · extends an existing modelsale_line_id (Sale Line)

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: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/sustainability.

terminal Installation and usage

No verified information

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

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.