openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #09244
[Bug 960399] [NEW] Many2One relationships from non-transient Model to TransientModel are forbidden
Public bug reported:
addons(trunk) rev. 6677
server(trunk) rev. 4098
new database with demodata
when i try to install project - modul i get the following error message:
Environment Information :
System : Linux-2.6.35.14-106.fc14.i686-i686-with-fedora-14-Laughlin
OS Name : posix
Operating System Release : 2.6.35.14-106.fc14.i686
Operating System Version : #1 SMP Wed Nov 23 13:57:33 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : de_DE.UTF8
Python Version : 2.7.0
OpenERP-Client Version : 6.1.1
Last revision No. & ID :2053 launchpad_translations_on_behalf_of_openerp-20120306044822-nqlubnvz8u651ddp
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/service/netrpc_server.py", line 64, in run
result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/netsvc.py", line 362, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/service/web_services.py", line 573, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
_db, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/registry.py", line 160, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/loading.py", line 347, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/loading.py", line 262, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/loading.py", line 172, in load_module_graph
init_module_models(cr, package.name, models)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/module.py", line 381, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/orm.py", line 3019, in _auto_init
self._m2o_add_foreign_key_checked(k, dest_model, f.ondelete)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/orm.py", line 2720, in _m2o_add_foreign_key_checked
'Many2One relationships from non-transient Model to TransientModel are forbidden'
AssertionError: Many2One relationships from non-transient Model to TransientModel are forbidden
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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/960399
Title:
Many2One relationships from non-transient Model to TransientModel are
forbidden
Status in OpenERP Addons (modules):
New
Bug description:
addons(trunk) rev. 6677
server(trunk) rev. 4098
new database with demodata
when i try to install project - modul i get the following error
message:
Environment Information :
System : Linux-2.6.35.14-106.fc14.i686-i686-with-fedora-14-Laughlin
OS Name : posix
Operating System Release : 2.6.35.14-106.fc14.i686
Operating System Version : #1 SMP Wed Nov 23 13:57:33 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : de_DE.UTF8
Python Version : 2.7.0
OpenERP-Client Version : 6.1.1
Last revision No. & ID :2053 launchpad_translations_on_behalf_of_openerp-20120306044822-nqlubnvz8u651ddp
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/service/netrpc_server.py", line 64, in run
result = netsvc.dispatch_rpc(msg[0], msg[1], msg[2:])
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/netsvc.py", line 362, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/service/web_services.py", line 573, in dispatch
res = fn(db, uid, *params)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/addons/base/module/wizard/base_module_upgrade.py", line 101, in upgrade_module
_db, pool = pooler.restart_pool(cr.dbname, update_module=True)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/pooler.py", line 39, in restart_pool
registry = RegistryManager.new(db_name, force_demo, status, update_module, True)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/registry.py", line 160, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/loading.py", line 347, in load_modules
processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/loading.py", line 262, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/loading.py", line 172, in load_module_graph
init_module_models(cr, package.name, models)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/modules/module.py", line 381, in init_module_models
result = obj._auto_init(cr, {'module': module_name})
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/orm.py", line 3019, in _auto_init
self._m2o_add_foreign_key_checked(k, dest_model, f.ondelete)
File "/usr/lib/python2.7/site-packages/openerp-serverv6.1/openerp/osv/orm.py", line 2720, in _m2o_add_foreign_key_checked
'Many2One relationships from non-transient Model to TransientModel are forbidden'
AssertionError: Many2One relationships from non-transient Model to TransientModel are forbidden
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/960399/+subscriptions
Follow ups
References