Skip to content

Commit

Permalink
Merge PR #445 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed May 2, 2024
2 parents a8f5a63 + c50ddde commit 7322983
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ddmrp_history/models/stock_buffer.py
Expand Up @@ -173,7 +173,9 @@ def stacked(df, categories):
domain, order="on_hand_position desc", limit=1
)
history_tog = history_model.search(
domain, order="top_of_green desc", limit=1
domain + [("top_of_green", "!=", False)],
order="top_of_green desc",
limit=1,
)
finish_stack = max(history_oh.on_hand_position, history_tog.top_of_green)

Expand Down

0 comments on commit 7322983

Please sign in to comment.