Skip to content
Snippets Groups Projects
Commit d3920879 authored by PNO's avatar PNO
Browse files

[FIX] spreadsheet_dashboard_stock_account: domain includes consumables


Stock valuation layers are generated for storable and consumable products. However, given that we don't keep track of its quants we hide those layers by default.
by adding a domain [('product_id.type', '=', 'product')].
On the dashboard, such domain is currently not present. As a result, our inventory valuation value is not the same if we look at it though the dashboard.
This commit adds the same domain so that the value of the inventory shown is always the same (which means not including consumable products).

OPW-3275521

closes odoo/odoo#120118

Signed-off-by: default avatarLucas Lefèvre (lul) <lul@odoo.com>
parent 02fc3af7
No related branches found
No related tags found
No related merge requests found
......@@ -728,7 +728,13 @@
"1": {
"colGroupBys": [],
"context": {},
"domain": [],
"domain": [
[
"product_id.type",
"=",
"product"
]
],
"id": "1",
"measures": [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment