Repository
OCA/sustainability · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting/Sustainability
Folder size
0.06 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/sustainability-suite/sustainability-odoo
Last tracking update
2026-09-21 11:33:45
Authors
Open Net Sàrl, MCO2
Maintainers
Open Net Sàrl, MCO2
Committers
Julien Guenat, SustainabilityBot
Odoo dependencies
Python dependencies
odoo_upgrade @ git+https://github.com/odoo/upgrade-util@master, openupgradelib, packaging
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
carbon_line_origin_tree carbon_line_origin_tree carbon.line.origin tree Inherits sustainability.carbon_line_origin_tree
purchase_order_form purchase.order.form purchase.order form Inherits purchase.purchase_order_form
sustainability_product_supplierinfo_tree_view sustainability.product.supplierinfo.list.view product.supplierinfo list Inherits purchase.product_supplierinfo_tree_view2
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

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

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

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

New fields (1)
  • carbon_supplier_id Many2one → product.supplierinfo
    comodel_name='product.supplierinfo' compute='_compute_carbon_supplier_id' string='Supplier Info'
Public methods (4)
  • can_use_carbon_supplier_id_carbon_value(self) -> bool
  • can_use_product_id_carbon_value(self) -> bool
  • get_carbon_supplier_id_carbon_compute_values(self) -> dict
  • get_product_id_carbon_compute_values(self) -> dict

New fields (0)

No new fields.

Public methods (0)

No public methods.

Loading…

Loading…

Loading…