openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #05061
Re: Javascript JSON-RPC client for OpenERP
You should check the OpenERP WebClient JSON-RPC since it has an specific
implementation to manipulate the payload, more specifically the uid of the
session and the httpsession params to maintain the HttpSession in OpenERP
server, you could look at instance.web.Session class in coresetup.js and
in instance.web.JsonRPC at corelib.js who is the class that implements
JsonRPC in the WebClient. All of this js files are located at
/addons/web/static/src/js folder
Hope this helps
Cheers
On Mon, Feb 24, 2014 at 11:23 AM, Daniel Reis <dgreis@xxxxxxx> wrote:
> Hello all,
>
> I'm trying to build a WebApp proof-of-concept for OpenERP.
> It should be a offline-first, mobile-first app, and work independently
> from OpenERP's webclient.
>
> For my proof-of-concept I'll be using Boostrap and Backbone with
> LocalStorage.
> These components are already part of OpenERP's stack, and my research
> tells me they can meet my goals.
>
> Now, my missing piece is the communication with the OpenERP Server.
> I know I can use JSON-RPC, but I can't find any concise documentation on
> how to do it with Javascript.
> I may be missing something obvious, but my next step is going to dig into
> OpenERP web client libraries to figure that out.
> I want to get a working pure javascript example for reading and writing
> data for an OpenERP Model, using JSON-RPC to interact with the server.
>
>
> I would greatly appreciate some help from knowledgeable people that could .
> I promise to share the results.
>
> Regards
>
> /DR
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-community
> More help : https://help.launchpad.net/ListHelp
>
>
References