If you have at least one abstract model in a module.
So you'll need to declare an abstract model :
class an_abstract_model(AbstractModel):
_name = 'an.abstract.model'
_columns = {}
So 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_model".id FROM "an_abstract_model" ORDER BY sequence
2012-07-26 08:27:07,748 1925 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/osv/osv.py", line 121, in
return f(self, dbname, *args, **kwargs)
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/osv/osv.py", line 176, in
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/osv/osv.py", line 164, in
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/addons/base/module/wizard
tools.trans_export(this.lang, ['all'], buf, 'csv', cr)
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/tools/translate.py", line
trans = trans_generate(lang, modules, cr)
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/tools/translate.py", line
ids = objmodel.search(cr, uid, [])
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/osv/orm.py", line 2245, i
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/osv/orm.py", line 4599, i
cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + o
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/sql_db.py", line 152, in
return f(self, *args, **kwargs)
File "/home/gbaconnier/code/instances/openerp_abstract/trunk/src/server/openerp/sql_db.py", line 212, in
res = self._obj.execute(query, params)
ProgrammingError: relation "an_abstract_model" does not exist
LINE 1: SELECT "an_abstract_model".id FROM "an_abstract_model" ORDER B...
Hello,
If you have at least one abstract model in a module.
So you'll need to declare an abstract model :
class an_abstract_ model(AbstractM odel):
_name = 'an.abstract.model'
_columns = {}
So 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_ model". id FROM "an_abstract_model" ORDER BY sequence gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ osv/osv. py", line 121, in gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ osv/osv. py", line 176, in gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ osv/osv. py", line 164, in gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ addons/ base/module/ wizard trans_export( this.lang, ['all'], buf, 'csv', cr) gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ tools/translate .py", line lang, modules, cr) gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ tools/translate .py", line gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ osv/orm. py", line 2245, i gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ osv/orm. py", line 4599, i execute( 'SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + o gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ sql_db. py", line 152, in gbaconnier/ code/instances/ openerp_ abstract/ trunk/src/ server/ openerp/ sql_db. py", line 212, in execute( query, params) model". id FROM "an_abstract_model" ORDER B...
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_