This question has been flagged
4 Replies
7482 Views

Server Traceback (most recent call last): File "/opt/openerp/server-7/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/opt/openerp/server-7/openerp/netsvc.py", line 293, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/server-7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/opt/openerp/server-7/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/opt/openerp/server-7/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/opt/openerp/server-7/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/opt/openerp/server-7/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr return fct_src(cr, uid, model, method, *args, **kw) File "/opt/openerp/server-7/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) AttributeError: 'module' object has no attribute 'get_apps_server'

Avatar
Discard

It's an error which is caused by Odoo Apps Server - there are problems with connection to that server, which should be resolved sooner than later.

Best Answer

Hi Alcaline,

This is not related to your new database. This method is non-existent in OpenERP 7.0.  It is a ODOO 8 method.

So my idea is that your server calls a service on the openerp's company server. And that reponse tells your server to do stuff that can only be done in ODOO 8.

I think that OpenERP created this bug yesterday.

If you don't like that your server connects to theirs (and sends a bunch of info about your system/database), search for "openerp phone home" on the web.

Avatar
Discard

Well.. just a correction... if you downloaded odoo v7 from github... it does exist... Check openerp/addons/base/module/module.py .. .line 743... the method is actualy there... but still i get the same error... and trying to figure out how to solve it..

Author

Thanks Hannes Smit

Best Answer

I did not found the proper solution for this error, but i found the workaround:

In order to eliminate this error i installed module disable_openerp_online, wich eliminates all bindings to op-online
for v8 : https://github.com/OCA/server-tools/tree/8.0/disable_openerp_online
for v7: https://github.com/OCA/server-tools/tree/7.0/disable_openerp_online

After this only localy available modules are listed, but no error shows.. 

There is some differencies between versions of openerp downloaded form launchpad and github...
(comment on Hannes Smith anser..) and also, this error appears randomly, not sure when or why... 

Avatar
Discard
Author

thanks Bole

Best Answer

Hi Lee, Please check the cr_execute menthod in audittrail.py in line 514, I thinks this may be the problem /opt/openerp/server-7/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr return fct_src(cr, uid, model, method, *args, **kw)

Avatar
Discard
Author

thanks Babu

Best Answer

I was getting the same error, but I found a clean, low-impact solution for it. First off, you're getting that error because of changes to https://apps.openerp.com/loempia/static/src/js/loempia_v7.js that Odoo made recently. I took a look at the version of server/openerp/addons/base/module/module.py in the Github repository ( https://github.com/odoo/odoo/blob/7.0/openerp/addons/base/module/module.py ) and noticed it defined "get_apps_server." So I copied the function definition (reproduced below for convenience) into the copy of module.py in my OpenERP 7 installation and that fixed it.

def get_apps_server(self, cr, uid, context=None):
    return tools.config.get('apps_server', 'https://apps.openerp.com/apps')

However, a better solution for implementations that can afford potentially breaking things would seem to be to completely upgrade your OpenERP 7 installation to match the 7.0 branch on Github. There are a lot of bug fixes that have been added recently.

Avatar
Discard