Export translation in OpenErp 6.1.1 hangs in report_aeroo\translate.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Aeroo Reports |
Fix Released
|
Medium
|
sraps (Alistek) |
Bug Description
Ubuntu 10.10 - Openerp 6.1.1
When i got to Settings » Translations » Import/Export Translation
i get the error:
AttributeError: 'Registry' object has no attribute 'obj_pool'
report_
l = pool.obj_
Server Traceback (most recent call last):
File "/home/
result = openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
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)
File "/home/
tools.
File "/home/
trans = trans_generate(
File "/home/
l = pool.obj_
AttributeError: 'Registry' object has no attribute 'obj_pool'
Changed in aeroo: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → sraps (Alistek) (erpsraps) |
Changed in aeroo: | |
status: | Confirmed → Fix Released |
I found the solution buta i dont know how to post in the source:
in translate.py line 44
def extend_ trans_generate( lang, modules, cr): getLogger( 'i18n') get_pool( dbname) 'ir.translation ') 'ir.model. data') pool.items( ) »»»»»»»»»»»»»»»»»» replace for:
logger = logging.
dbname = cr.dbname
pool = pooler.
trans_obj = pool.get(
model_data_obj = pool.get(
uid = 1
#l = pool.obj_
l = pool.obj_list() »»»»»»»»»»»»»»»»»» this