Merge pull request #35015 from rohitwaghchaure/incorrect-or-cond-delivery-note-issue

fix: incorrect OR condition causing timeout error (For more than 50 line items)
This commit is contained in:
rohitwaghchaure 2023-04-24 18:06:59 +05:30 committed by GitHub
commit 291845e461
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1445,13 +1445,13 @@ def get_next_stock_reco(kwargs):
(
CombineDatetime(sle.posting_date, sle.posting_time)
> CombineDatetime(kwargs.get("posting_date"), kwargs.get("posting_time"))
| (
(
CombineDatetime(sle.posting_date, sle.posting_time)
== CombineDatetime(kwargs.get("posting_date"), kwargs.get("posting_time"))
)
& (sle.creation > kwargs.get("creation"))
)
| (
(
CombineDatetime(sle.posting_date, sle.posting_time)
== CombineDatetime(kwargs.get("posting_date"), kwargs.get("posting_time"))
)
& (sle.creation > kwargs.get("creation"))
)
)
)