Synchronize translation terms crash when abstract models are used
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP's Framework R&D | |||
OpenERP Community Backports (Server) | Status tracked in 7.0 | |||||
6.1 |
Fix Committed
|
Medium
|
Yann Papouin | |||
7.0 |
New
|
Undecided
|
Unassigned |
Bug Description
Hello,
If you have at least one abstract model in a module, the synchronization of terms to translate fails.
To reproduce it, you'll need to declare an abstract model :
class an_abstract_
_name = 'an.abstract.model'
_columns = {}
When you launch the synchronization of translated terms, you'll get an error, with a traceback similar to the one below.
, in query SELECT "an_abstract_
2012-07-26 08:27:07,748 1925 ERROR ? openerp.osv.osv: Uncaught exception
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)
File "/home/
tools.
File "/home/
trans = trans_generate(
File "/home/
ids = objmodel.search(cr, uid, [])
File "/home/
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=
File "/home/
cr.
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: relation "an_abstract_model" does not exist
LINE 1: SELECT "an_abstract_
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 13 lines (+3/-1)1 file modifiedopenerp/tools/translate.py (+3/-1)
- OpenERP Core Team: Pending requested
-
Diff: 13 lines (+3/-1)1 file modifiedopenerp/tools/translate.py (+3/-1)
- OpenERP Core Team: Pending requested
-
Diff: 20 lines (+2/-2)1 file modifiedopenerp/tools/translate.py (+2/-2)
- Holger Brunn (Therp): Needs Information (code review)
-
Diff: 20 lines (+3/-1)1 file modifiedopenerp/tools/translate.py (+3/-1)
Merge proposal done on the linked branches.