Skip to content

[7208][FIX] stock_valuation_layer_reporting: exclude archived products - #158

Closed
nobuQuartile wants to merge 1 commit into
16.0from
16.0-fix-stock_valuation_layer_reporting
Closed

nobuQuartile wants to merge 1 commit into
16.0from
16.0-fix-stock_valuation_layer_reporting

Conversation

@nobuQuartile

@nobuQuartile nobuQuartile commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

QT7208

Archived products were showing up in the v2 SVL report, so they are now excluded.

Relational traversal in a domain (e.g. product_id.categ_id) is evaluated with active_test=False, so SVL records of archived products were included unless product_id.active = True is stated explicitly. inventory_reporting (v1) already applies the same filter; this brings v2 in line with it.

  • get_base_domain(): applies to the storable / consumable / summary sheets
  • get_valuation_domain(): applies to the valuation sheet and the product category totals in the summary

Relational traversal in a domain (e.g. product_id.categ_id) is evaluated with
active_test disabled, so SVL records of archived products were reported. Filter
them out explicitly, as inventory_reporting already does.
@nobuQuartile

Copy link
Copy Markdown
Contributor Author

At first, I will check whether we need to fix this or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant