openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #03136
[Bug 902140] Re: When updating getting error
*** This bug is a duplicate of bug 799378 ***
https://bugs.launchpad.net/bugs/799378
** This bug is no longer a duplicate of bug 901647
Indirectly inheriting models do not get updated when a new module is installed (this leads e.g. to "column email_template.fetchmail_server_id does not exist")
** This bug has been marked a duplicate of bug 799378
models inheriting by prototype (_inherit with different _name) do not get updated when parent model is modified
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/902140
Title:
When updating getting error
Status in OpenERP Addons (modules):
New
Bug description:
When I am going to update[via gtk] an MODEL_view.xml file it gives me
error.
And If I am trying to update same module via command line [-u module]
with server parameter , it does not do anything.
Traceback :-
Environment Information :
System : Linux-2.6.32-26-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
LSB Version: core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-26-generic
Operating System Version : #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_IN.ISO8859-1
Python Version : 2.6.5
OpenERP-Client Version : 6.1beta
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/home/tiny/sources/server/trunk/openerp/service/netrpc_server.py", line 62, in run
result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
File "/home/tiny/sources/server/trunk/openerp/netsvc.py", line 325, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/home/tiny/sources/server/trunk/openerp/service/web_services.py", line 580, in dispatch
res = fn(db, uid, *params)
File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 120, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 172, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/tiny/sources/server/trunk/openerp/osv/osv.py", line 163, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/tiny/sources/server/trunk/openerp/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
_db, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/home/tiny/sources/server/trunk/openerp/pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
File "/home/tiny/sources/server/trunk/openerp/modules/registry.py", line 160, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/home/tiny/sources/server/trunk/openerp/modules/loading.py", line 339, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
File "/home/tiny/sources/server/trunk/openerp/modules/loading.py", line 254, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
File "/home/tiny/sources/server/trunk/openerp/modules/loading.py", line 194, in load_module_graph
load_data(module_name, idref, mode)
File "/home/tiny/sources/server/trunk/openerp/modules/loading.py", line 94, in <lambda>
load_data = lambda *args: _load_data(cr, *args, kind='data')
File "/home/tiny/sources/server/trunk/openerp/modules/loading.py", line 140, in _load_data
tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
File "/home/tiny/sources/server/trunk/openerp/tools/convert.py", line 999, in convert_xml_import
obj.parse(doc.getroot())
File "/home/tiny/sources/server/trunk/openerp/tools/convert.py", line 889, in parse
self._tags[rec.tag](self.cr, rec, n)
File "/home/tiny/sources/server/trunk/openerp/tools/convert.py", line 856, 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 "/home/tiny/sources/server/trunk/openerp/addons/base/ir/ir_model.py", line 719, in _update
res_id = model_obj.create(cr, uid, values, context=context)
File "/home/tiny/sources/addons/trunk/fetchmail/fetchmail.py", line 247, in create
res = super(mail_message,self).create(cr, uid, values, context=context)
File "/home/tiny/sources/server/trunk/openerp/osv/orm.py", line 4161, in create
self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
File "/home/tiny/sources/server/trunk/openerp/osv/orm.py", line 4323, in _store_set_values
'"'+f+'"='+self._columns[f]._symbol_set[0] + ' where id = %s', (self._columns[f]._symbol_set[1](value), id))
File "/home/tiny/sources/server/trunk/openerp/sql_db.py", line 153, in wrapper
return f(self, *args, **kwargs)
File "/home/tiny/sources/server/trunk/openerp/sql_db.py", line 215, in execute
res = self._obj.execute(query, params)
InternalError: current transaction is aborted, commands ignored until end of transaction block
Thanks,
Tejas - TTA
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/902140/+subscriptions
References