credativ team mailing list archive
-
credativ team
-
Mailing list archive
-
Message #04232
[Bug 922200] Re: [6.1-RC1] Invalid field 'module' in domain expression
Recloning the trunk server branch solved the issue.
** Changed in: openobject-server
Status: New => Invalid
--
You received this bug notification because you are a member of OpenERP
Framework Experts, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/922200
Title:
[6.1-RC1] Invalid field 'module' in domain expression
Status in OpenERP Server:
Invalid
Bug description:
Using trunk branches, I upgraded an existing database and I got :
[2012-01-26 17:02:48,348][openerpdev] ERROR:root:Failed to initialize database `openerpdev`.
Traceback (most recent call last):
File "openerp/server/openerp-server", line 95, in preload_registry
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
File "/Users/openerpdev/openerp/server/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
File "/Users/openerpdev/openerp/server/openerp/modules/registry.py", line 138, in get
update_module, pooljobs)
File "/Users/openerpdev/openerp/server/openerp/modules/registry.py", line 160, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/Users/openerpdev/openerp/server/openerp/modules/loading.py", line 299, in load_modules
loaded_modules, processed_modules = load_module_graph(cr, graph, status, perform_checks=(not update_module), report=report)
File "/Users/openerpdev/openerp/server/openerp/modules/loading.py", line 215, in load_module_graph
modobj.update_translations(cr, 1, [module_id], None)
File "/Users/openerpdev/openerp/server/openerp/addons/base/module/module.py", line 594, in update_translations
tools.trans_load(cr, f, lang, verbose=False, context=context2)
File "/Users/openerpdev/openerp/server/openerp/tools/translate.py", line 846, in trans_load
r = trans_load_data(cr, fileobj, fileformat, lang, verbose=verbose, context=context)
File "/Users/openerpdev/openerp/server/openerp/tools/translate.py", line 931, in trans_load_data
ids = trans_obj.search(cr, uid, args)
File "/Users/openerpdev/openerp/server/openerp/osv/orm.py", line 2234, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/Users/openerpdev/openerp/server/openerp/osv/orm.py", line 4537, in _search
query = self._where_calc(cr, user, args, context=context)
File "/Users/openerpdev/openerp/server/openerp/osv/orm.py", line 4386, in _where_calc
e = expression.expression(cr, user, domain, self, context)
File "/Users/openerpdev/openerp/server/openerp/osv/expression.py", line 358, in __init__
self.parse(cr, uid, distribute_not(normalize(exp)), table, context)
File "/Users/openerpdev/openerp/server/openerp/osv/expression.py", line 454, in parse
raise ValueError("Invalid field %r in domain expression %r" % (left, exp))
ValueError: Invalid field 'module' in domain expression ['&', '&', '&', '&', '&', ('lang', '=', u'fr_FR'), ('type', '=', 'model'), ('name', '=', 'res.country,name'), ('src', '=', 'Saint Helena'), ('module', '=', 'base'), ('xml_id', '=', 'sh')]
The domain is set in the file openerp/addons/base/res/res_partner.py:
def main_partner(self, cr, uid):
''' Return the id of the main partner
'''
model_data = self.pool.get('ir.model.data')
return model_data.browse(
cr, uid,
model_data.search(cr, uid, [('module','=','base'),
('name','=','main_partner')])[0],
).res_id
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/922200/+subscriptions
References