bug with share_create object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Invalid
|
Undecided
|
Unassigned |
Bug Description
in trunk (tested on chrome and web client)
create a db. In configuration wizard, install extra tools and then, web share.
I got a bug :
In server side :
-------
[2011-06-14 10:52:24,172][?] ERROR:web-
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
AttributeError: 'share_create' object has no attribute 'has_share'
<type 'exceptions.
Python 2.6.5: /usr/bin/python
Tue Jun 14 10:52:54 2011
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/home/
426 self.log('service', tuple(replace_
427 auth = getattr(self, 'auth_provider', None)
428 result = ExportService.
429 self.log('result', result, channel=
430 return result
result undefined
global ExportService = <class 'openerp.
ExportService.
service_name = 'object'
).dispatch undefined
method = 'execute'
auth = None
params = ('testbug_14juin', 1, u'a', 'share.wizard', 'has_share')
/home/
577 ls = netsvc.
578 fn = getattr(ls, method)
579 res = fn(db, uid, *params)
580 return res
581
res undefined
fn = <bound method object_
db = 'testbug_14juin'
uid = 1
params = ('share.wizard', 'has_share')
/home/
120 if pooler.
121 raise except_
122 return f(self, dbname, *args, **kwargs)
123 except orm.except_orm, inst:
124 if inst.name == 'AccessError':
f = <function execute>
self = <openerp.
dbname = 'testbug_14juin'
args = (1, 'share.wizard', 'has_share')
kwargs = {}
/home/
174 if method.
175 raise except_osv('Access Denied', 'Private methods (such as %s) cannot be called remotely.' % (method,))
176 res = self.execute_cr(cr, uid, obj, method, *args, **kw)
177 if res is None:
178 self.logger.
res undefined
self = <openerp.
self.execute_cr = <bound method object_
cr = <openerp.
uid = 1
obj = 'share.wizard'
method = 'has_share'
args = ()
kw = {}
/home/
165 if not object:
166 raise except_osv('Object Error', 'Object %s doesn\'t exist' % str(obj))
167 return getattr(object, method)(cr, uid, *args, **kw)
168
169 @check
builtingetattr = <built-in function getattr>
object = <share.
method = 'has_share'
cr = <openerp.
uid = 1
args = ()
kw = {}
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'share_create' object has no attribute 'has_share'",)
message = "'share_create' object has no attribute 'has_share'"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
AttributeError: 'share_create' object has no attribute 'has_share'
Aline,
I'm closing this bug as Invalid, the issue is caused by testing the new "share" wizard from the current feature branch, and then going back to normal trunk. The feature branch installs a newer "web addon" that will stay in the web client, and will not be backwards compatible with the old module in trunk.
So this is specific to your computer that was used for testing new features.
You can fix it by deleting the "addons/share" directory in your web client directory and then restarting the web client :-)
The issue will also fix itself as soon as we merge the feature branch, which should be this week.