Load Bank Statement is not working in multi-tenant environments
Description
Found by @Thomas Bayen
When running the Load Bank Statement process in an implementation with one client + GardenWorld, the process threw the following message:
Cross tenant PO reading request detected from session 1234354 for table C_BankAccount Record_ID=100
After debugging, I noticed that MBankStatementLoader.loadlines() [line 181] is missing to add AD_Client_ID to the where clause in the query, so the query.list() returns all active bank accounts including those of different clients, which leads to the cross tenant exception.
Found by @Thomas Bayen
When running the Load Bank Statement process in an implementation with one client + GardenWorld, the process threw the following message:
Cross tenant PO reading request detected from session 1234354 for table C_BankAccount Record_ID=100
After debugging, I noticed that MBankStatementLoader.loadlines() [line 181] is missing to add AD_Client_ID to the where clause in the query, so the query.list() returns all active bank accounts including those of different clients, which leads to the cross tenant exception.