Sustainability Purchase
sustainability_purchase · OCA/sustainability
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 9 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 16.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
3 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.08 MB
Module directory on disk
Code analysis
1 migration note
5 models
3 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE res_partner SET carbon_in_mode = 'auto', carbon_out_mode = 'auto'` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- odoo_upgrade @ git+https://github.com/odoo/upgrade-util@master, openupgradelib, packaging
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → purchase.order.linecompute='_compute_many2one_lines'store=Truestring='Purchase Line' args: 'purchase.order.line'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
carbon_currency_idMany2one → res.currencycompute='_compute_carbon_currency_id' args: 'res.currency' -
carbon_debtMonetarycompute='_compute_carbon_debt'currency_field='carbon_currency_id'store=Truestring='CO2'
-
action_recompute_carbon(self) -> dictForce re-computation of carbon values for PO lines.
New fields (1)
-
carbon_supplier_idMany2one → product.supplierinfocomodel_name='product.supplierinfo'compute='_compute_carbon_supplier_id'string='Supplier Info'
-
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…