Stock Balance Report: get_closing_balance method problem with query builder

I’ve been generating report in stock balance. But I noticed that in the error message the query is warehouse = [‘warehouse1‘]

but I can see inside the get_closing_balance method it is handled what datatype is.

The attach image is the script that handles query condition of the warehouse.

ERPNext: v15.45.4
Frappe Framework: v15.81.0

Using Python 3.11

In my local site it works even when using the same version of erpnext and frappe