c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #34612
[Bug 871996] Re: Errror creating database
Hello Felix Schubert,
I have checked your issue with latest updated code with trunk , web-
client(6.1) and It is working fine at my end.
I have started server with Following :
./openerp-server --addons=../openobject-addons
Revision of Trunk :
web-client(6.1) -1233
server - 3755
addons - 5352
Would you please try with updated code.
Thanks and waiting for your reply
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/871996
Title:
Errror creating database
Status in OpenERP Web:
Incomplete
Bug description:
When I try to create a new database with the latest revisions of
server and web client - I receive the following traceback:
[2011-10-10 20:24:16,035][openerp] ERROR:tools.convert.xml_import:Parse error in /home/openerp/openobject-addons/base_setup/base_setup_views.xml:90:
<record id="config_action_user_preferences_config_form" model="ir.actions.todo">
<field name="action_id" ref="action_user_preferences_config_form"/>
<field name="category_id" ref="base.category_administration_config"/>
<field name="type">once</field>
</record>
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 888, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 855, in _tag_record
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/addons/base/ir/ir_model.py", line 718, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 4203, in create
self._check_selection_field_value(cr, user, field, vals[field], context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 2791, in _check_selection_field_value
_('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._table, field))
except_orm: ('ValidateError', 'The value "once" for the field "ir_actions_todo.type" is not in the selection')
[2011-10-10 20:24:16,039][openerp] ERROR:db.create:CREATE DATABASE failed:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/service/web_services.py", line 63, in _initialize_db
update_module=True)[1]
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/pooler.py", line 44, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/registry.py", line 155, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 329, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 244, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 186, in load_module_graph
load_update_xml(module_name, idref, mode)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 91, in <lambda>
load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/modules/loading.py", line 137, in _load_data
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 998, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 888, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/tools/convert.py", line 855, in _tag_record
id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/addons/base/ir/ir_model.py", line 718, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 4203, in create
self._check_selection_field_value(cr, user, field, vals[field], context=context)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/osv/orm.py", line 2791, in _check_selection_field_value
_('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._table, field))
except_orm: ('ValidateError', 'The value "once" for the field "ir_actions_todo.type" is not in the selection')
Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/service/web_services.py", line 85, in _initialize_db
cr.close()
File "/usr/local/lib/python2.6/dist-packages/openerp_server-6.1_dev-py2.6.egg/openerp/sql_db.py", line 152, in wrapper
raise psycopg2.OperationalError(msg)
OperationalError: Unable to use a closed cursor.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-web/+bug/871996/+subscriptions
References