On 2015-12-30 07:58, Tatiana Quizhpe wrote: > 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'>
This is clearly that you are connecting to a database which is not up to date with the trytond server version. Or the opposite the trytond server version is older than the database. The module table was renamed in 3.8 -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- 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/20151231101640.GB11765%40tetsuo.wifi.b2ck.com.
