Skip to content

[19.0] [FIX] stock_available: template quantities depend on the context - #101

Open
ivantodorovich wants to merge 1 commit into
OCA:19.0from
camptocamp:19.0-fix-stock_available-template-context
Open

ivantodorovich wants to merge 1 commit into
OCA:19.0from
camptocamp:19.0-fix-stock_available-template-context

Conversation

@ivantodorovich

Copy link
Copy Markdown
Contributor

The quantities of the templates had no depends_context, unlike the ones of the variants. They were then cached for the first warehouse, location or date read, and the same value was returned in another context, e.g. for another warehouse.

They now depend on the same context keys as the variant quantities.

Like the variant quantities: they were cached for the first warehouse or
location read.
@ivantodorovich
ivantodorovich marked this pull request as ready for review October 28, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants