← Back to team overview

credativ team mailing list archive

[Bug 1043234] Re: AttributeError: 'Field name not found in browse_record(ir.module.category, 2)'

 

2012-09-28 07:40:48,524 2367 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.request:INFO"
2012-09-28 07:40:48,524 2367 DEBUG ? openerp.netsvc: logger level set: "openerp.netsvc.rpc.response:INFO"
2012-09-28 07:40:48,525 2367 DEBUG ? openerp.netsvc: logger level set: "openerp.addons.web.common.http:INFO"
2012-09-28 07:40:48,525 2367 DEBUG ? openerp.netsvc: logger level set: "openerp.addons.web.common.openerplib:INFO"
2012-09-28 07:40:48,526 2367 DEBUG ? openerp.netsvc: logger level set: "openerp.sql_db:INFO"
2012-09-28 07:40:48,527 2367 DEBUG ? openerp.netsvc: logger level set: ":INFO"
2012-09-28 07:40:48,527 2367 DEBUG ? openerp.netsvc: logger level set: "openerp:DEBUG"
2012-09-28 07:40:48,528 2367 DEBUG ? openerp.netsvc: logger level set: ":INFO"
2012-09-28 07:40:48,528 2367 INFO ? openerp: OpenERP version 6.1
2012-09-28 07:40:48,529 2367 INFO ? openerp: addons paths: /opt/openerp/openupgrade-addons
2012-09-28 07:40:48,529 2367 INFO ? openerp: database hostname: localhost
2012-09-28 07:40:48,530 2367 INFO ? openerp: database port: 5432
2012-09-28 07:40:48,530 2367 INFO ? openerp: database user: openerp
2012-09-28 07:40:48,531 2367 DEBUG ? openerp.netsvc: Registered an exported service: db
2012-09-28 07:40:48,531 2367 DEBUG ? openerp.netsvc: Registered an exported service: common
2012-09-28 07:40:48,532 2367 DEBUG ? openerp.netsvc: Registered an exported service: object
2012-09-28 07:40:48,532 2367 DEBUG ? openerp.netsvc: Registered an exported service: wizard
2012-09-28 07:40:48,533 2367 DEBUG ? openerp.netsvc: Registered an exported service: report
2012-09-28 07:40:48,533 2367 INFO ? openerp.service.netrpc_server: starting NET-RPC service on 0.0.0.0:8070
2012-09-28 07:40:48,534 2367 DEBUG ? openerp.cron: Master cron daemon started!
2012-09-28 07:40:48,535 2367 INFO ? openerp.netsvc: Starting 1 services
2012-09-28 07:40:48,536 2367 DEBUG ? openerp.cron: Going to sleep for 60s
2012-09-28 07:40:48,537 2367 WARNING ? openerp.modules.module: module web: module not found
2012-09-28 07:40:48,538 2367 CRITICAL ? openerp.modules.module: Couldn't load module web
2012-09-28 07:40:48,538 2367 CRITICAL ? openerp.modules.module: unsupported operand type(s) for +: 'bool' and 'str'
2012-09-28 07:40:48,539 2367 ERROR ? openerp: Failed to load server-wide module `web`.
The `web` module is provided by the addons found in the `openerp-web` project.
Maybe you forgot to add those addons in your addons_path configuration.
Traceback (most recent call last):
  File "/opt/openerp/openupgrade-server/openerp-server", line 252, in <module>
    openerp.modules.module.load_openerp_module(m)
  File "/opt/openerp/openupgrade-server/openerp/modules/module.py", line 407, in load_openerp_module
    zip_mod_path = mod_path + '.zip'
TypeError: unsupported operand type(s) for +: 'bool' and 'str'
2012-09-28 07:40:48,591 2367 INFO ? openerp.wsgi.core: HTTP service (werkzeug) running on 0.0.0.0:8069
2012-09-28 07:40:48,605 2367 DEBUG etech openerp.modules.loading: loading 1 packages...
2012-09-28 07:40:48,607 2367 INFO etech openerp.modules.loading: module base: loading objects
2012-09-28 07:40:48,611 2367 DEBUG etech openerp.osv.fields: required=True is deprecated: making an integer field `required` has no effect, as NULL values are automatically turned into 0.
2012-09-28 07:40:48,612 2367 DEBUG etech openerp.osv.fields: required=True is deprecated: making an integer field `required` has no effect, as NULL values are automatically turned into 0.
2012-09-28 07:40:48,613 2367 DEBUG etech openerp.osv.fields: required=True is deprecated: making an integer field `required` has no effect, as NULL values are automatically turned into 0.
2012-09-28 07:40:48,614 2367 DEBUG etech openerp.osv.fields: required=True is deprecated: making an integer field `required` has no effect, as NULL values are automatically turned into 0.
2012-09-28 07:40:48,645 2367 DEBUG etech openerp.osv.fields: required=True is deprecated: making an integer field `required` has no effect, as NULL values are automatically turned into 0.
2012-09-28 07:40:48,753 2367 INFO etech openerp.modules.module: module base: creating or updating database tables
2012-09-28 07:40:48,791 2367 DEBUG etech openerp.osv.orm.schema: Table 'ir_model_fields': dropped constraint 'ir_model_fields_size_gt_zero'. Reason: its definition changed from 'check (size > 0)' to 'CHECK (size>0)'
2012-09-28 07:40:48,793 2367 DEBUG etech openerp.osv.orm.schema: Table 'ir_model_fields': added constraint 'ir_model_fields_size_gt_zero' with definition=CHECK (size>0)
2012-09-28 07:40:48,972 2367 DEBUG etech openerp.osv.orm.schema: Table 'ir_model_fields': dropped constraint 'ir_model_fields_size_gt_zero'. Reason: its definition changed from 'check (size > 0)' to 'CHECK (size>0)'
2012-09-28 07:40:48,974 2367 DEBUG etech openerp.osv.orm.schema: Table 'ir_model_fields': added constraint 'ir_model_fields_size_gt_zero' with definition=CHECK (size>0)
2012-09-28 07:40:49,189 2367 DEBUG etech openerp.osv.orm.schema: Table 'ir_rule': dropped constraint 'ir_rule_no_access_rights'. Reason: its definition changed from 'check (perm_read <> false or perm_write <> false or perm_create <> false or perm_unlink <> false)' to 'CHECK (perm_read!=False or perm_write!=False or perm_create!=False or perm_unlink!=False)'
2012-09-28 07:40:49,191 2367 DEBUG etech openerp.osv.orm.schema: Table 'ir_rule': added constraint 'ir_rule_no_access_rights' with definition=CHECK (perm_read!=False or perm_write!=False or perm_create!=False or perm_unlink!=False)
2012-09-28 07:40:49,200 2367 DEBUG etech openerp.osv.orm.schema: Table 'wizard_ir_model_menu_create': dropping obsolete FK constraint: 'wizard_ir_model_menu_create_menu_id_fkey'
2012-09-28 07:40:49,201 2367 DEBUG etech openerp.osv.orm.schema: Table 'wizard_ir_model_menu_create': added foreign key 'menu_id' with definition=REFERENCES "ir_ui_menu" ON DELETE cascade
2012-09-28 07:40:49,211 2367 DEBUG etech openerp.osv.orm.schema: Table 'wizard_ir_model_menu_create_line': dropping obsolete FK constraint: 'wizard_ir_model_menu_create_line_view_id_fkey'
2012-09-28 07:40:49,212 2367 DEBUG etech openerp.osv.orm.schema: Table 'wizard_ir_model_menu_create_line': added foreign key 'view_id' with definition=REFERENCES "ir_ui_view" ON DELETE cascade
2012-09-28 07:40:49,836 2367 INFO etech openerp.modules.loading: module base: loading base_data.xml
2012-09-28 07:40:50,273 2367 INFO etech openerp.modules.loading: module base: loading security/base_security.xml
2012-09-28 07:40:50,281 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,291 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,319 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,327 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,340 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,348 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,361 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,372 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,387 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,395 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,412 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,422 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,441 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,451 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,473 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,482 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,515 2367 INFO etech openerp.modules.loading: module base: loading base_menu.xml
2012-09-28 07:40:50,638 2367 INFO etech openerp.modules.loading: module base: loading res/res_security.xml
2012-09-28 07:40:50,643 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:50,650 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:50,681 2367 INFO etech openerp.modules.loading: module base: loading res/res_config.xml
2012-09-28 07:40:50,716 2367 INFO etech openerp.modules.loading: module base: loading data/res.country.state.csv
2012-09-28 07:40:50,921 2367 INFO etech openerp.modules.loading: module base: loading base_update.xml
2012-09-28 07:40:51,031 2367 INFO etech openerp.modules.loading: module base: loading ir/wizard/wizard_menu_view.xml
2012-09-28 07:40:51,047 2367 INFO etech openerp.modules.loading: module base: loading ir/ir.xml
2012-09-28 07:40:52,215 2367 INFO etech openerp.modules.loading: module base: loading ir/ir_config_parameter_view.xml
2012-09-28 07:40:52,253 2367 INFO etech openerp.modules.loading: module base: loading ir/workflow/workflow_view.xml
2012-09-28 07:40:52,467 2367 INFO etech openerp.modules.loading: module base: loading ir/report/ir_report.xml
2012-09-28 07:40:52,476 2367 INFO etech openerp.modules.loading: module base: loading module/module_view.xml
2012-09-28 07:40:52,565 2367 INFO etech openerp.modules.loading: module base: loading module/module_data.xml
2012-09-28 07:40:52,631 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,640 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,652 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,660 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,671 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,679 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,691 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,700 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,711 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,718 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,731 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,739 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,751 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,759 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,771 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:52,780 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:52,791 2367 INFO etech openerp.modules.loading: module base: loading module/module_report.xml
2012-09-28 07:40:52,800 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_module_import_view.xml
2012-09-28 07:40:52,818 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_module_update_view.xml
2012-09-28 07:40:52,848 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_language_install_view.xml
2012-09-28 07:40:52,875 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_import_language_view.xml
2012-09-28 07:40:52,902 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_module_upgrade_view.xml
2012-09-28 07:40:52,943 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_module_configuration_view.xml
2012-09-28 07:40:52,956 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_export_language_view.xml
2012-09-28 07:40:52,985 2367 INFO etech openerp.modules.loading: module base: loading module/wizard/base_update_translations_view.xml
2012-09-28 07:40:53,012 2367 INFO etech openerp.modules.loading: module base: loading res/res_request_view.xml
2012-09-28 07:40:53,150 2367 INFO etech openerp.modules.loading: module base: loading res/res_lang_view.xml
2012-09-28 07:40:53,200 2367 INFO etech openerp.modules.loading: module base: loading res/res_log_view.xml
2012-09-28 07:40:53,248 2367 INFO etech openerp.modules.loading: module base: loading res/res_partner_report.xml
2012-09-28 07:40:53,256 2367 INFO etech openerp.modules.loading: module base: loading res/res_partner_view.xml
2012-09-28 07:40:53,527 2367 INFO etech openerp.modules.loading: module base: loading res/res_partner_shortcut_data.xml
2012-09-28 07:40:53,531 2367 INFO etech openerp.modules.loading: module base: loading res/res_bank_view.xml
2012-09-28 07:40:53,678 2367 INFO etech openerp.modules.loading: module base: loading res/res_country_view.xml
2012-09-28 07:40:53,767 2367 INFO etech openerp.modules.loading: module base: loading res/res_currency_view.xml
2012-09-28 07:40:53,834 2367 INFO etech openerp.modules.loading: module base: loading res/res_partner_event_view.xml
2012-09-28 07:40:53,856 2367 INFO etech openerp.modules.loading: module base: loading res/wizard/partner_sms_send_view.xml
2012-09-28 07:40:53,875 2367 INFO etech openerp.modules.loading: module base: loading res/wizard/partner_wizard_massmail_view.xml
2012-09-28 07:40:53,894 2367 INFO etech openerp.modules.loading: module base: loading res/wizard/partner_clear_ids_view.xml
2012-09-28 07:40:53,913 2367 INFO etech openerp.modules.loading: module base: loading res/wizard/partner_wizard_ean_check_view.xml
2012-09-28 07:40:53,934 2367 INFO etech openerp.modules.loading: module base: loading res/res_partner_data.xml
2012-09-28 07:40:53,948 2367 INFO etech openerp.modules.loading: module base: loading res/ir_property_view.xml
2012-09-28 07:40:54,005 2367 INFO etech openerp.modules.loading: module base: loading security/base_security.xml
2012-09-28 07:40:54,014 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,023 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,043 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,052 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,065 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,075 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,089 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,097 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,112 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,121 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,136 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,143 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,157 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,165 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,186 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Application'" 
2012-09-28 07:40:54,195 2367 DEBUG etech openerp.tools.translate: no translation language detected, skipping translation for "'Other'" 
2012-09-28 07:40:54,218 2367 INFO etech openerp.modules.loading: module base: loading publisher_warranty/publisher_warranty_view.xml
2012-09-28 07:40:54,301 2367 INFO etech openerp.modules.loading: module base: loading security/ir.model.access.csv
2012-09-28 07:40:54,869 2367 INFO etech openerp.modules.loading: module base: loading res/res_widget_view.xml
2012-09-28 07:40:54,958 2367 INFO etech openerp.modules.loading: module base: loading res/res_widget_data.xml
2012-09-28 07:40:54,983 2367 INFO etech openerp.modules.loading: module base: loading publisher_warranty/publisher_warranty_data.xml
2012-09-28 07:40:55,052 2367 INFO etech openerp.addons.base.module.module: module base: loading translation file (en_GB) for language en_GB
2012-09-28 07:40:55,053 2367 INFO etech openerp.tools.translate: loading /opt/openerp/openupgrade-server/openerp/addons/base/i18n/en_GB.po
2012-09-28 07:40:55,896 2367 INFO etech openerp.modules.loading: updating modules list
2012-09-28 07:40:55,975 2367 WARNING etech openerp.osv.orm: No field_values found for ids [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 17, 18, 19, 20, 21, 23, 24, 26, 27, 28, 29, 30, 31, 32, 34, 36, 38, 39, 40, 41, 42, 43, 44, 45] in browse_record(ir.module.category, 2)
2012-09-28 07:40:55,976 2367 ERROR etech openerp: Failed to initialize database `etech`.
Traceback (most recent call last):
  File "/opt/openerp/openupgrade-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/openupgrade-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/openupgrade-server/openerp/modules/registry.py", line 180, in get
    update_module, pooljobs)
  File "/opt/openerp/openupgrade-server/openerp/modules/registry.py", line 202, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/openupgrade-server/openerp/modules/loading.py", line 471, in load_modules
    modobj.update_list(cr, 1)
  File "/opt/openerp/openupgrade-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/openupgrade-server/openerp/addons/base/module/module.py", line 551, in _update_category
    current_category_path.insert(0, current_category.name)
  File "/opt/openerp/openupgrade-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 07:40:55,979 2367 INFO etech openerp: OpenERP server is running, waiting for connections...

-- 
You received this bug notification because you are a member of
OpenUpgrade Committers, which is subscribed to OpenUpgrade Server.
https://bugs.launchpad.net/bugs/1043234

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)'

To manage notifications about this bug go to:
https://bugs.launchpad.net/openupgrade-server/+bug/1043234/+subscriptions


References