Sale Order - Ordered Weight
sale_order_ordered_weight · OCA/sale-workflow
Health
47/100
poor
-
Security25/25No findings
-
Activity12/25Last human commit 22 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 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
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.15 MB
Module directory on disk
Code analysis
1 migration note
4 models
5 views
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE sale_order_line SET total_ordered_weight = ( product.weight * sale_order_line.product_uom_qty / line_uom.factor * template_uom.factor ), total_delivered_weight = ( product.weight * sale_order_line.qty_delivered / line_uom.factor * template_uom.factor ) FROM product_product product, product_template template, uom_uom as template_uom, uom_uom as line_uom WHERE product.id = sale_order_line.product_id AND template.id = product.product_tmpl_id AND template.uom_id = template_uom.id AND sale_order_line.product_uom = line_uom.id AND product.weight != 0;` - re-check the table/column names still match after upgrading. (2 occurrences in this file) 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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
report_saleorder_document |
report_saleorder_document | ir.ui.view | qweb | Inherits sale.report_saleorder_document |
res_config_settings_view_form |
res.config.settings | form | Inherits account.res_config_settings_view_form | |
sale_order_view_form |
sale.order | form | Inherits sale.view_order_form | |
sale_order_view_tree |
sale.order | form | Inherits sale.view_order_tree | |
sale_order_view_tree_quotation |
sale.order | form | Inherits sale.view_quotation_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (2)
-
display_line_weight_on_sale_reportBooleandefault=False -
display_order_weight_on_sale_reportBooleandefault=True
No public methods.
New fields (2)
-
display_line_weight_on_sale_reportBooleanreadonly=Falserelated='company_id.display_line_weight_on_sale_report' -
display_order_weight_on_sale_reportBooleanreadonly=Falserelated='company_id.display_order_weight_on_sale_report'
No public methods.
New fields (1)
-
total_ordered_weightFloatcompute='_compute_total_ordered_weight'store=Truestring='Ordered Weight'
No public methods.
New fields (1)
-
total_ordered_weightFloatcompute='_compute_total_ordered_weight'store=Truestring='Ordered Weight'
No public methods.