2012-04-04 08:04:01 PDT
Not sure if it is exactly what you want but in Compiere, I used the following workaround:
Create a Window thats a view. In SQL change the Org to match the security role for the warehouses that the user does have access to. In our case, we have two orgs. We force the user to log in and log out for data entry and preventing errors. However, they do need to be able to look up product information and inventory.
So a simple view in the database that changes the Org provides read only view in a window.
ex: user has access to AD_ORG_ID=1 needs read only visibility in our window for AD_ORG_ID=2
in oracle
Select CASE when ad_org_id= 2 THEN AD_ORG_ID=1 ELSE AD_ORG_ID END AS AD_ORG_ID, (ADD ALL YOUR OTHER FIELDS) FROM M_STORAGE s
Not sure if it would work in Adempiere but if security is still similar to Compiere, this work around should work.