IRC logs of #tryton for Saturday, 2013-08-31

chat.freenode.net #tryton log beginning Sat Aug 31 00:00:01 CEST 2013
2013-08-31 02:21 <WalterN> zultron: well, lemme know how it goes :3
2013-08-31 12:09 -!- priyankarani(~priyanka@115.243.98.82) has left #tryton
2013-08-31 13:28 <version32> Hi. New to Tryton. Interested in what JSONRPC calls are available from trytond. Can you point me to some documentation on that subject.
2013-08-31 14:04 <albertca> version32: Don't think there's a document with all API available for JSONRPC
2013-08-31 14:04 <albertca> version32: but you should be able to access all models (tables)
2013-08-31 14:05 <albertca> version32: if you take a look at the code, you'll see __rpc__ which indicates which functions are available
2013-08-31 14:05 <version32> I guess if I look in the client source ...
2013-08-31 14:05 <albertca> version32: for example: http://hg.tryton.org/trytond/file/5236aa254801/trytond/model/model.py
2013-08-31 14:05 <albertca> version32: yes, and proteus
2013-08-31 14:05 <version32> proteus looks very powerful.
2013-08-31 14:06 <version32> Could I use it to script cookie-cutter installs?
2013-08-31 14:06 <albertca> version32: it is much smaller than GTK client and will probably use most API the client uses (except export/import and some other probably minor stuff)
2013-08-31 14:07 <albertca> version32: note that each model can publish its own functions/buttons which proteus nor the client will know about
2013-08-31 14:07 <albertca> version32: so you need to look at those modules and models to see which functions they provide
2013-08-31 14:08 <albertca> version32: never tried, but please, take a look at this: http://hg.tryton.org/trytond/file/5236aa254801/trytond/protocols/dispatcher.py
2013-08-31 14:09 <albertca> version32: It seems that searching with the "system" functions you should be able to get the list of methods for all models and other objects
2013-08-31 14:10 <albertca> version32: and also get the python doc associated with it (most usually it will be empty I guess)
2013-08-31 14:10 <albertca> version32: you should be able to query it with both jsonrpc and xml-rpc
2013-08-31 14:11 <version32> That's really helpful. Thank you for the tips. I did my first install last night. I'm working my way through the source this morning.
2013-08-31 14:11 <version32> Is there a recommended method for importing already existing client data (eg product lists, supplier lists, customer lists)
2013-08-31 14:12 <albertca> version32: if there is not a lot of data proteus will probably be the easier path
2013-08-31 14:12 <albertca> version32: if there's a lot of data proteus will be very slow
2013-08-31 14:12 <albertca> version32: if structure is very simple you can also try the import functionality from the gtk client (in the tools menu of all forms)
2013-08-31 14:13 <albertca> version32: for large data imports at NaN·tic we use Kettle which is an ETL
2013-08-31 14:14 <albertca> version32: if the latter is your case, you can take a look at the project we did for migrating data from OpenERP at http://www.openerp2tryton.com/migration.html
2013-08-31 14:16 <version32> What is the target market for Tryton in terms of business/organization size? Is there a sweet spot?
2013-08-31 19:46 -!- tnt|2(~kvirc@212.255.226.6) has left #tryton

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!