Stock Move Pivot Total Price
stock_move_pivot_total_price · OCA/stock-logistics-reporting
Health
62/100
fair
-
Security25/25No findings
-
Activity20/25Last human commit 9 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 17.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.04 MB
Module directory on disk
Code analysis
1 migration note
1 model
1 view
0 HTTP endpoints
Migration considerations
- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `WITH product_prices AS ( SELECT pt.id AS product_id, sm.id AS stock_move_id, (pt.list_price + (COALESCE(SUM(pav.default_extra_price), 0) + COALESCE(SUM(ptav.price_extra), 0))) * SUM(sm.quantity) AS total_price FROM product_template pt INNER JOIN product_product as pp ON pp.product_tmpl_id = pt.id LEFT JOIN product_variant_combination pvc ON pt.id = pvc.product_product_id LEFT JOIN product_template_attribute_value ptav ON pvc.product_template_attribute_value_id = ptav.id LEFT JOIN product_attribute_value pav ON ptav.product_attribute_value_id = pav.id LEFT JOIN stock_move sm ON sm.product_id = pp.id GROUP BY pt.id, pt.list_price, sm.id ) UPDATE stock_move sm SET product_total_price = pp.total_price FROM product_prices pp WHERE sm.id = pp.stock_move_id;` - 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
This module introduces Product total price for every stock move, wich can be selected as a measure in Move Analysis.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_move_pivot_inherit |
stock.move.pivot.inherit | stock.move | pivot | Inherits stock.view_move_pivot |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (1)
-
product_total_priceFloatcompute='_compute_product_total_price'store=Truestring='Total Product Price'
No public methods.
Loading…