----- Original Message -----
From: "Stefan Rijnhart (Therp)" <email address hidden>
To: <email address hidden>
Sent: Friday, 28 September, 2012 12:06:51 PM
Subject: [Bug 1043234] Re: AttributeError: 'Field name not found in browse_record(ir.module.category, 2)'
Hi Simon,
thank you for the additional information. The error is fired when an
OpenERP model (the module category) fails to instanciate (it has no
fields). This is probably caused by a failure of the base module to
load, for which I do not see any other cause or hint in the logs.
What I do see is that the migration scripts from the base module are not
being run. You should see something like the following line in your logs
before any xml file is loaded:
- the base module that you are loading does not contain the OpenUpgrade
migrations directory with the migration scripts. Does the file
/opt/openerp/openupgrade-server/openerp/addons/base/migrations/6.1.1.3
/pre-migration.py exist on your system?
- you are running the migration script on a database that has half-
survived a previous upgrade attempt. Did you rerun the migration
procedure on a fresh copy of your 6.0 database?
Title:
AttributeError: 'Field name not found in
browse_record(ir.module.category, 2)'
Status in OpenUpgrade Server:
Incomplete
Bug description:
When I run the migration script on my 6.0.4 db to update to 6.1 I get.
Traceback (most recent call last):
File "/opt/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 "/opt/openerp/server/openerp/pooler.py", line 33, in get_db_and_pool
registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
File "/opt/openerp/server/openerp/modules/registry.py", line 180, in get
update_module, pooljobs)
File "/opt/openerp/server/openerp/modules/registry.py", line 202, in new
openerp.modules.load_modules(registry.db, force_demo, status, update_module)
File "/opt/openerp/server/openerp/modules/loading.py", line 471, in load_modules
modobj.update_list(cr, 1)
File "/opt/openerp/server/openerp/addons/base/module/module.py", line 497, in update_list
self._update_category(cr, uid, mod, terp.get('category', 'Uncategorized'))
File "/opt/openerp/server/openerp/addons/base/module/module.py", line 551, in _update_category
current_category_path.insert(0, current_category.name)
File "/opt/openerp/server/openerp/osv/orm.py", line 478, in __getattr__
raise AttributeError(e)
AttributeError: 'Field name not found in browse_record(ir.module.category, 2)'
2012-09-28 10:08:25,974 4629 INFO etech openerp. modules. migration: module base: Running migration [>6.1.1.3] pre-migration base/migrations /6.1.1. 3/pre-migration .py called
2012-09-28 10:08:25,974 4629 INFO etech OpenUpgrade: /opt/openerp/
Simon Vass
Managing Director
E-Tech Uganda Ltd
http:// www.etech. ug
Tel: +256 (0) 312260620 or (0) 312260621
email: <email address hidden>
skype: e-techservicedesk
----- Original Message ----- record( ir.module. category, 2)'
From: "Stefan Rijnhart (Therp)" <email address hidden>
To: <email address hidden>
Sent: Friday, 28 September, 2012 12:06:51 PM
Subject: [Bug 1043234] Re: AttributeError: 'Field name not found in browse_
Hi Simon,
thank you for the additional information. The error is fired when an
OpenERP model (the module category) fails to instanciate (it has no
fields). This is probably caused by a failure of the base module to
load, for which I do not see any other cause or hint in the logs.
What I do see is that the migration scripts from the base module are not
being run. You should see something like the following line in your logs
before any xml file is loaded:
openerp. modules. migration: module base: Running migration [>6.x.x.x]
pre-migration
This means that either
- the base module that you are loading does not contain the OpenUpgrade openupgrade- server/ openerp/ addons/ base/migrations /6.1.1. 3
migrations directory with the migration scripts. Does the file
/opt/openerp/
/pre-migration.py exist on your system?
- you are running the migration script on a database that has half-
survived a previous upgrade attempt. Did you rerun the migration
procedure on a fresh copy of your 6.0 database?
Cheers,
Stefan.
-- /bugs.launchpad .net/bugs/ 1043234
You received this bug notification because you are subscribed to the bug
report.
https:/
Title: record( ir.module. category, 2)'
AttributeError: 'Field name not found in
browse_
Status in OpenUpgrade Server:
Incomplete
Bug description:
When I run the migration script on my 6.0.4 db to update to 6.1 I get.
Traceback (most recent call last): server/ openerp- server" , line 95, in preload_registry pooler. get_db_ and_pool( dbname, update_ module= config[ 'init'] or config['update'], pooljobs=False) server/ openerp/ pooler. py", line 33, in get_db_and_pool .get(db_ name, force_demo, status, update_module, pooljobs) server/ openerp/ modules/ registry. py", line 180, in get module, pooljobs) server/ openerp/ modules/ registry. py", line 202, in new modules. load_modules( registry. db, force_demo, status, update_module) server/ openerp/ modules/ loading. py", line 471, in load_modules update_ list(cr, 1) server/ openerp/ addons/ base/module/ module. py", line 497, in update_list _update_ category( cr, uid, mod, terp.get( 'category' , 'Uncategorized')) server/ openerp/ addons/ base/module/ module. py", line 551, in _update_category category_ path.insert( 0, current_ category. name) server/ openerp/ osv/orm. py", line 478, in __getattr__ record( ir.module. category, 2)'
File "/opt/openerp/
db, registry = openerp.
File "/opt/openerp/
registry = RegistryManager
File "/opt/openerp/
update_
File "/opt/openerp/
openerp.
File "/opt/openerp/
modobj.
File "/opt/openerp/
self.
File "/opt/openerp/
current_
File "/opt/openerp/
raise AttributeError(e)
AttributeError: 'Field name not found in browse_
To manage notifications about this bug go to: /bugs.launchpad .net/openupgrad e-server/ +bug/1043234/ +subscriptions
https:/