fix: search not working for so in the Production Plan (backport #36459) (#36460)

fix: search not working for so in the Production Plan (#36459)

fix: search not working for so
(cherry picked from commit 8c57d56240)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
mergify[bot]
2023-08-02 12:59:31 +05:30
committed by GitHub
parent 710ec18086
commit 4605bc51ae

View File

@@ -1731,7 +1731,7 @@ def sales_order_query(
query = query.where(so_table.name.isin(filters.get("sales_orders")))
if txt:
query = query.where(table.item_code.like(f"{txt}%"))
query = query.where(table.parent.like(f"%{txt}%"))
if page_len:
query = query.limit(page_len)