← Back to team overview

openerp-india team mailing list archive

[Bug 725081] Re: [trunk] base_synchro : error on fields_get

 

I have the same issue.

What is a 'proper' example? Here is how I used the module.

I go to 'Administration => Configuration => Synchronization'

I create a server in 'Servers to be synchronized'

I go to 'Administration => Configuration => Synchronization = History'

I create an object to be synchronized.

- Partner Addresses

- I select the server I created above

- Synchronization direction is 'Download'

I go to 'Administration => Configuration => Synchronization'

I use 'Synchronize Objects' wizard

I select the server I created above.

Then I get the error. The error resides in the RPCProxyOne.__getattr__
method. The method is successfully called in the synchronize method.
Later it breaks in the data_transform method. Line 189 as stated above.

Am I using this module incorrectly? If so what is the right way to use
the module? Also, is there a reason why there isn't any logging?

Thanks

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/725081

Title:
  [trunk] base_synchro : error on fields_get

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  When I tried to download synchronized stock.move, an error occurs with this traceback : 
  [2011-02-25 17:00:08,796][synchro2] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/addons/base_synchro/wizard/base_synchro.py", line 256, in upload_download_multi_thread
      threaded_synchronization.run()
    File "/usr/lib/python2.6/threading.py", line 484, in run
      self.__target(*self.__args, **self.__kwargs)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/addons/base_synchro/wizard/base_synchro.py", line 224, in upload_download
      self.synchronize(cr, uid, server, object, context)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/addons/base_synchro/wizard/base_synchro.py", line 105, in synchronize
      value = self.data_transform(cr, uid, pool_src, pool_dest, object.model_id.model, value, action)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/addons/base_synchro/wizard/base_synchro.py", line 189, in data_transform
      self.meta[pool_src][object] = pool_src.get(object).fields_get(cr, uid, context=context)
    File "/home/quentin/Developpement/OpenERP_official/6.0.1/server/bin/addons/base_synchro/wizard/base_synchro.py", line 41, in <lambda>
      return lambda cr, uid, *args, **kwargs: self.rpc.execute(self.server.server_db, self.uid, self.server.password, self.ressource, name, *args, **kwargs)
  TypeError: __call__() got an unexpected keyword argument 'context'


  If I remove the context=context in line 189, everything's ok.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/725081/+subscriptions