Hi. I have a Tryton instance is going to be to used as XML-RPC server. I have been trying to connect from another instance of Tryton like is indicated in these examples [1] [2]. The method in where I call to connect XML-RPC is in a button of my module but I get this error [2] when click first time and this one [3] when I click second time in the same button. Seems like is not possible to execute the method with XML-RPC.
Anyone could to connect from one instance to another Tryton instance with XML-RPC? Any help would be very appreciated. Thanks in advanced. [1] https://code.google.com/p/tryton/wiki/RemoteCalls#XML-RPC_in_Python [2] http://tryton.zikzakmedia.com/Develop/Webservices [3] ERROR:tryton.common.common:Traceback (most recent call last): File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch response['result'] = dispatch_method(method, params) File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch res = dispatch(*args) File "/trytond/protocols/dispatcher.py", line 161, in dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/trytond/modules/sale/invoice.py", line 22, in wrapper func(cls, invoices) File "/trytond/modules/sale/invoice.py", line 95, in post super(Invoice, cls).post(invoices) File "/trytond/modules/purchase/invoice.py", line 22, in wrapper func(cls, invoices) File "/trytond/modules/purchase/invoice.py", line 101, in post super(Invoice, cls).post(invoices) File "/trytond/model/modelview.py", line 497, in wrapper return func(cls, *args, **kwargs) File "/trytond/model/workflow.py", line 33, in wrapper result = func(cls, filtered, *args, **kwargs) File "/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/xmlrpclib.py", line 1578, in __request verbose=self.__verbose File "/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/xmlrpclib.py", line 1297, in single_request return self.parse_response(response) File "/xmlrpclib.py", line 1473, in parse_response return u.close() File "/xmlrpclib.py", line 793, in close raise Fault(**self._stack[0]) Fault: <Fault 1: '<class \'psycopg2.ProgrammingError\'>:relation "ir_module_module" does not exist\nLINE 1: SELECT "a"."name" FROM "ir_module_module" AS "a" WHERE ("a"....\n ^\n'> <Fault 1: '<class \'psycopg2.ProgrammingError\'>:relation "ir_module_module" does not exist\nLINE 1: SELECT "a"."name" FROM "ir_module_module" AS "a" WHERE ("a"....\n ^\n'> [4] Traceback (most recent call last): File "/trytond/protocols/jsonrpc.py", line 150, in _marshaled_dispatch response['result'] = dispatch_method(method, params) File "/trytond/protocols/jsonrpc.py", line 179, in _dispatch res = dispatch(*args) File "/trytond/protocols/dispatcher.py", line 161, in dispatch result = rpc.result(meth(*c_args, **c_kwargs)) File "/trytond/modules/sale/invoice.py", line 22, in wrapper func(cls, invoices) File "/trytond/modules/sale/invoice.py", line 95, in post super(Invoice, cls).post(invoices) File "/trytond/modules/purchase/invoice.py", line 22, in wrapper func(cls, invoices) File "/trytond/modules/purchase/invoice.py", line 101, in post super(Invoice, cls).post(invoices) File "/trytond/model/modelview.py", line 497, in wrapper return func(cls, *args, **kwargs) File "/trytond/model/workflow.py", line 33, in wrapper result = func(cls, filtered, *args, **kwargs) File "/trytond/modules/nodux_account_electronic_invoce_ec/invoice.py", line 123, in post invoice.action_generate_invoice() File "/trytond/modules/nodux_account_electronic_invoce_ec/invoice.py", line 332, in action_generate_invoice proxy.validate_xml(factura) File "/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/xmlrpclib.py", line 1578, in __request verbose=self.__verbose File "/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/xmlrpclib.py", line 1297, in single_request return self.parse_response(response) File "/xmlrpclib.py", line 1473, in parse_response return u.close() File "/xmlrpclib.py", line 793, in close raise Fault(**self._stack[0]) Fault: <Fault 1: "<type 'exceptions.KeyError'>:'ir.session'"> -- RegaGreetings -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/b8a4d12b-64a7-4863-94ec-3c0f884ab754%40googlegroups.com.
