[7.0] Share and Embed options not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
Whenever I try to "share" or "embed" a document in OpenERP 7.0 it throws this on the server:
2013-01-31 20:52:00,236 28993 ERROR openerp7 openerp.netsvc: has_share() takes at least 4 arguments (4 given)
Traceback (most recent call last):
File "/Users/
result = ExportService.
File "/Users/
res = fn(db, uid, *params)
File "/Users/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/Users/
return f(self, dbname, *args, **kwargs)
File "/Users/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/Users/
return getattr(object, method)(cr, uid, *args, **kw)
File "/Users/
self.
File "/Users/
return super(share_
File "/Users/
self.
TypeError: has_share() takes at least 4 arguments (4 given)
I checked the code and seems that the function "has_share" has a weird variable called "unused_param", here is the function:
def has_share(self, cr, uid, unused_param, context=None):
return self.has_group(cr, uid, module='share', group_xml_
So when it calls has_group I added a variable to fill that gap, so that the context is recieved properly in has_share, but now the problem is this:
2013-01-31 21:24:49,961 29778 ERROR openerp7 openerp.
Traceback (most recent call last):
File "/Users/
rule_
File "/Users/
org_domain = expression.
AttributeError: 'module' object has no attribute 'normalize'
2013-01-31 21:24:49,962 29778 ERROR openerp7 openerp.netsvc: No se ha podido crear el acceso compartido.
So it seems that "expression", that is imported from openerp.osv does not have a "normalize" function, and dunno where that might be fixed.