I'm consuming an OpenBravo JSON REST webservice through PHP and everything is working fine, but I can't receive data that has "active" field set to false.
Is there any option I can submit to the ws in order to get inactive registries?
For example, this URL:
mydomain.com/openbravo/org.openbravo.service.json.jsonrest/PricingAdjustment?_where=active=false
returns:
{
"response":
{
"data": [],
"status": 0,
"totalRows": 0,
"startRow": 0,
"endRow": -1
}
}
Thank you very much!
You can write custom REST service (as part of custom module) to get desired behavior
As openbravo core module adds few security constraints [you can have a look if you perform deeper debugging - issue may be due to client, organization access or any security related]
http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/How_to_create_a_new_REST_webservice