hexya-erp / hexya-base

Deprecated. See the new hexya-addons organisation
https://github.com/hexya-addons
Other
11 stars 7 forks source link

Export searchReadParams struct and searchRead function? #2

Open halybang opened 6 years ago

halybang commented 6 years ago

Can you export searchReadParams struct and searchRead function inside web/controllers/model_calls.go ? I wrote a websocket module for JsonRPC. This module use same JSONRPC call as HTTP Request/Reply. This module help client app send request through HTTP as WebSocket. It require web module export Execute (Already exported) and searchRead function. I need this module for real-time communication (for ex: Chat support, notify client about price changed, display IoT devices status, display vehicles within Google Map Viewer ...etc). Thanks.

npiganeau commented 6 years ago

This function is more like a dirty hack to use Odoo's client with Hexya, so I don't really want to make it public. You should get almost the same result with Execute("SearchRead").