chat.freenode.net #tryton log beginning Mon Sep 3 00:00:01 CEST 2012 | ||
2012-09-03 07:34 -!- cristatus(~amit@1.22.100.197) has left #tryton | ||
2012-09-03 12:21 <scrapper> what do you guys say to this -> bug or not? https://bugs.tryton.org/issue2766 | ||
2012-09-03 12:29 <scrapper> I do wonder as "Second Currency" is not a new feature. Its available since Version 1.x but it does not seem to work. | ||
2012-09-03 12:29 <cedk> scrapper: I think the "Force all moves" should be removed | ||
2012-09-03 12:30 <scrapper> cedk: yes I think so too. | ||
2012-09-03 12:30 <scrapper> cedk: sadly, because its would be a great feature. | ||
2012-09-03 12:31 <cedk> scrapper: I think it must be not to complicated to implement it | ||
2012-09-03 12:32 <scrapper> cedk: so - Move Lines: | ||
2012-09-03 12:32 <scrapper> Second Currency and Amount Second Currency: allow to keep track of the original | ||
2012-09-03 12:32 <scrapper> amount if the underlying transaction was made in an other currency. | ||
2012-09-03 12:32 <scrapper> is the only way to keep track of second currency... which needs fix for invoice-payment write off. Again second currency (even if underlying transaction is in second currency.) is ignored on write off. | ||
2012-09-03 12:33 <scrapper> cedk: ok ced, good to know that you too think there is something which is not ok. I just wondered as this feature was implemented since Tryton Version 1.x | ||
2012-09-03 12:33 <scrapper> cedk: I will work on it and publish as soon as its running. | ||
2012-09-03 13:45 -!- scrapper(~scrapper@62-47-143-5.adsl.highway.telekom.at) has left #tryton | ||
2012-09-03 16:11 <Arno[Slack]> Hi | ||
2012-09-03 16:13 <Arno[Slack]> I cannot find a documentation that helps me about the remote API (apparently XML-RPC and JSON) of Tryton | ||
2012-09-03 16:13 <Arno[Slack]> the wiki has little informations about remote calls on version 1.6 and under but nothing on 2.4 | ||
2012-09-03 16:14 <Arno[Slack]> and I cannot find any documentation that gives me the list of accessible remote APIs | ||
2012-09-03 16:14 <Arno[Slack]> is there anything like that ? Am I missing something ? | ||
2012-09-03 16:15 <Arno[Slack]> I bet the remote API exists since there is a GTK client but I did not find anything | ||
2012-09-03 16:23 <bechamel> Arno[Slack]: the gtk client use the json api | ||
2012-09-03 16:23 <flox> I don't know if the API is close to the OpenERP API or not | ||
2012-09-03 16:23 <flox> Does Tryton provides an XML-RPC api like openerp? | ||
2012-09-03 16:24 <nicoe> flox: yes | ||
2012-09-03 16:24 <flox> is it compatible? | ||
2012-09-03 16:25 <flox> because I developped a tool to connect to openerp API, I don't know the effort to make it compatible for tryto | ||
2012-09-03 16:25 <flox> tryton* | ||
2012-09-03 16:25 <nicoe> flox: there are probably some small changes | ||
2012-09-03 16:26 <nicoe> flox: what kind of tool are you talking about ? | ||
2012-09-03 16:26 <nicoe> flox: if it is a python library, we already have that | ||
2012-09-03 16:26 <nicoe> flox: it's called proteus | ||
2012-09-03 16:27 <flox> nice, I'll take a look | ||
2012-09-03 16:27 <flox> the one I developped is ERPpeek http://erppeek.readthedocs.org/ | ||
2012-09-03 16:28 <flox> definitely, it looks similar to Proteus purpose | ||
2012-09-03 16:32 <nicoe> There is a lot of python modules to access openerp some years ago I created http://pypi.python.org/pypi/oersted/1.2.0 | ||
2012-09-03 16:33 <flox> yes, I've seen a lot of them :-) | ||
2012-09-03 16:33 <flox> I've listed some on this page https://code.launchpad.net/~openerp-community/openerp-tools/extra | ||
2012-09-03 16:34 <flox> oersted is listed too | ||
2012-09-03 17:18 <Arno[Slack]> sorry I add a meeting | ||
2012-09-03 17:19 <Arno[Slack]> flox: the json api suites me even better | ||
2012-09-03 17:20 <Arno[Slack]> we need it for a whole different purpose | ||
2012-09-03 17:20 <Arno[Slack]> and Python is not an option for this development | ||
2012-09-03 17:27 <nicoe> Arno[Slack]: The file proteus/config.py contains a XmlrpcConfig class that show how to connect to the XML-RPC server in python | ||
2012-09-03 17:27 <nicoe> Arno[Slack]: It might help | ||
2012-09-03 17:28 <nicoe> Arno[Slack]: the JSON api is using another api | ||
2012-09-03 17:29 <nicoe> I think it's called json-rpc | ||
2012-09-03 17:29 <corro> Arno[Slack]: what language will be used in your project? I could provide a example using XML-RPC in PHP. | ||
2012-09-03 17:30 <Arno[Slack]> it'll be Java | ||
2012-09-03 17:30 <Arno[Slack]> but what I need is the API documentation | ||
2012-09-03 17:31 <Arno[Slack]> with the list of available methods, parameters and return values | ||
2012-09-03 17:31 <Arno[Slack]> the transportation media is not a problem | ||
2012-09-03 17:32 <nicoe> Arno[Slack]: nobody has written this kind of documentation yet | ||
2012-09-03 17:33 <Arno[Slack]> you know like youtube API reference (https://developers.google.com/youtube/2.0/reference) for example | ||
2012-09-03 17:33 <Arno[Slack]> ah... | ||
2012-09-03 17:33 <corro> Arno[Slack]: you can call all methods with (nearly) the same signature as long as the module exports it | ||
2012-09-03 17:34 <Arno[Slack]> ok... That will not help at all to estimate the cost of the project | ||
2012-09-03 17:35 <Arno[Slack]> and about json-rpc, is there any documentation ? | ||
2012-09-03 17:35 <Arno[Slack]> the only one I found is http://code.google.com/p/tryton/wiki/RemoteCalls | ||
2012-09-03 17:35 <Arno[Slack]> but it looks pretty outdated | ||
2012-09-03 17:35 <corro> Arno[Slack]: with 2.2 it still works | ||
2012-09-03 17:36 <nicoe> the xml-rpc part is not outdated | ||
2012-09-03 17:36 <nicoe> it lacks the json-rpc part | ||
2012-09-03 17:36 <nicoe> It is probably pretty similar | ||
2012-09-03 17:37 <nicoe> but talking from experience, writing and understanding python is not the costly part of a java project ;) | ||
2012-09-03 17:38 <Arno[Slack]> we won't write a single line of Python :) | ||
2012-09-03 17:39 <flox> no need to write, you just need to read Python | ||
2012-09-03 17:39 <flox> to understand the examples | ||
2012-09-03 17:39 <nicoe> Arno[Slack]: no but you will probably need to read it :D | ||
2012-09-03 17:40 <Arno[Slack]> just to be sure I understand correctly the amount of work we are facing : I need to go through the code of Proteus (or the JSON equivalent), find the URLs, the RPC call formats, write a librairy in Java that does the same thing | ||
2012-09-03 17:41 <Arno[Slack]> and then go through all the modules, check the exported methods and finally map them into my Java API | ||
2012-09-03 17:41 <Arno[Slack]> am I right ? | ||
2012-09-03 17:45 <nicoe> proteus does not support json-rpc (although I think there is a patch to do so) | ||
2012-09-03 17:45 <nicoe> the rpc call format is almost always the same if I remember correctly | ||
2012-09-03 17:46 <nicoe> the exported methods are easily findable since they are referenced in the "self._rpc" dictionnary of each object | ||
2012-09-03 17:46 <corro> and most of the time you are only calling search, read and write anyway | ||
2012-09-03 17:46 <nicoe> corro: indeed | ||
2012-09-03 17:47 <nicoe> corro, Arno[Slack]: and create of course | ||
2012-09-03 17:47 <corro> nicoe: true | ||
2012-09-03 17:49 <Arno[Slack]> ok | ||
2012-09-03 17:49 <Arno[Slack]> thank you | ||
2012-09-03 17:50 <Arno[Slack]> From a total outsider of the project, it is a bit rough to enter the dev part of Tryton | ||
2012-09-03 17:50 <Arno[Slack]> if I may | ||
2012-09-03 17:51 <Arno[Slack]> there is very little documentation | ||
2012-09-03 17:51 <nicoe> Arno[Slack]: you're right | ||
2012-09-03 17:52 <nicoe> Arno[Slack]: the doc is not completely up to date and newcomers have some difficulties | ||
2012-09-03 17:53 <nicoe> Arno[Slack]: but usually we can answer their questions here | ||
2012-09-03 17:54 <Arno[Slack]> indeed :) | ||
2012-09-03 17:54 <nicoe> Arno[Slack]: every 6 month a guy tries to make a better doc but it does not last long :( | ||
2012-09-03 17:54 <Arno[Slack]> what I find personnally troulesome is that everything is written for Python | ||
2012-09-03 17:57 <cedk> Arno[Slack]: are you kidding? | ||
2012-09-03 17:57 <cedk> Arno[Slack]: :-) | ||
2012-09-03 17:57 <Arno[Slack]> for example the RemoteCalls doc does not explain how I shall format my XML and what are the methods naming convention (or it is possible to call s.model.party.party.search directly in the XML/JSON-RPC) | ||
2012-09-03 17:57 <Arno[Slack]> not really | ||
2012-09-03 17:58 <Arno[Slack]> a remote api's goal is to exchange data with other world | ||
2012-09-03 17:58 <cedk> Arno[Slack]: it is standard XML-RPC | ||
2012-09-03 17:59 <corro> Arno[Slack]: see http://xmlrpc.scripting.com/ | ||
2012-09-03 17:59 <yangoon> cedk according to my checks the current maintenance releases are lacking trytond and proteus | ||
2012-09-03 17:59 <cedk> Arno[Slack]: after that, you have to read the Python code to know the method, args etc. because XML-RPC doesn't have a description mechanism | ||
2012-09-03 17:59 <yangoon> cedk: is this intentional? | ||
2012-09-03 18:00 <cedk> yangoon: not for proteus | ||
2012-09-03 18:01 <flox> For some parts, the OpenERP documentation itself is not so bad http://doc.openerp.com/v6.1/developer/12_api.html | ||
2012-09-03 18:01 <flox> there's snippets for php, perl, java (xml-rpc only) | ||
2012-09-03 18:04 <ciupicri> speaking of XML-RPC could I use it or something else available in Python to write some POS (Point of Sale) software that talks to the server? | ||
2012-09-03 18:09 <flox> ciupicri: sure | ||
2012-09-03 18:14 <nicoe> ciupicri: last year there was a GSOC that did just that | ||
2012-09-03 18:14 <ciupicri> nicoe: POS software? | ||
2012-09-03 18:21 <cedk> ciupicri: https://code.google.com/p/tryton/wiki/POSModule | ||
2012-09-03 18:21 <ciupicri> thanks | ||
2012-09-03 22:03 <juanfe> someone know a sample model of how to make a field lookup in a view? | ||
2012-09-03 22:34 <cedk> juanfe: what do you mean? | ||
2012-09-03 22:38 <juanfe> cedk My idea is list a field of a related table, example if I have a party that belong to a customer, list the parties with her customer name! | ||
2012-09-03 22:38 <juanfe> like a lookup field | ||
2012-09-03 22:40 <cedk> juanfe: don't understand | ||
2012-09-03 22:41 <juanfe> One second, cedk | ||
2012-09-03 23:28 -!- scrapper(~scrapper@80-121-25-92.adsl.highway.telekom.at) has left #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!