Repository
OCA/sustainability · module folder · Try on Runboat
Module version
1.1.0
Category
Sales/Sales
Folder size
0.03 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/sustainability-suite/sustainability-odoo
Last tracking update
2026-09-21 11:18:10
Authors
Open Net Sàrl, MCO2
Maintainers
Open Net Sàrl, MCO2
Committers
David Gallay, SustainabilityBot
Odoo dependencies
Python dependencies
openupgradelib, packaging
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
carbon_line_origin_tree carbon_line_origin_tree carbon.line.origin tree Inherits sustainability.carbon_line_origin_tree
view_order_form_inherit_sustainability sale.order.form.inherit.sustainability sale.order form Inherits sale.view_order_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (1)
  • sale_line_id Many2one → sale.order.line
    compute='_compute_many2one_lines' store=True string='Sale Line' args: 'sale.order.line'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (3)
  • carbon_currency_id Many2one → res.currency
    compute='_compute_carbon_currency_id' store=True args: 'res.currency'
  • carbon_debt Monetary
    compute='_compute_carbon_debt' currency_field='carbon_currency_id' store=True string='CO2 Equivalent' tracking=True
  • carbon_uncertainty_value Monetary
    compute='_compute_carbon_uncertainty_value' currency_field='carbon_currency_id' store=True string='CO2 Uncertainty' tracking=True
Public methods (1)
  • action_recompute_carbon(self) -> dict
    Force re-computation of carbon values for PO lines.

New fields (0)

No new fields.

Public methods (3)
  • can_use_product_id_carbon_value(self) -> bool
  • get_carbon_sign(self) -> int
  • get_product_id_carbon_compute_values(self) -> dict