← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 689484] [NEW] NameError: name 'res_id' is not defined

 

Public bug reported:

Did a fresh clean installation of OpenERP6 server; as the system was
installing the initial modules, got the message, "NameError: name
'res_id' is not defined" in the log file.

Installation proceeded, with no indication of the error to the user.

Excerpt from server log file:
[2010-12-13 12:42:57,727][openerp6trunk1] INFO:init:module process: loading security/ir.model.access.csv
[2010-12-13 12:42:57,773][openerp6trunk1] INFO:init:module process: loading process_view.xml
[2010-12-13 12:42:58,002][openerp6trunk1] INFO:init:module base_calendar: no quality certificate
[2010-12-13 12:42:58,002][openerp6trunk1] INFO:init:module base_calendar: loading base_calendar_data.xml
[2010-12-13 12:42:58,079][openerp6trunk1] INFO:init:module base_calendar: loading security/ir.model.access.csv
[2010-12-13 12:42:58,111][openerp6trunk1] INFO:init:module base_calendar: loading wizard/calendar_event_edit_all_view.xml
[2010-12-13 12:42:58,128][openerp6trunk1] INFO:init:module base_calendar: loading wizard/base_calendar_invite_attendee_view.xml
[2010-12-13 12:42:58,146][openerp6trunk1] INFO:init:module base_calendar: loading wizard/base_calendar_set_exrule_view.xml
[2010-12-13 12:42:58,164][openerp6trunk1] INFO:init:module base_calendar: loading base_calendar_view.xml
[2010-12-13 12:42:58,368][openerp6trunk1] INFO:i18n:module base_calendar: loading translation file for language en_US
[2010-12-13 12:42:58,369][openerp6trunk1] INFO:i18n:loading /home/philu/work/openerp6/openobject-addons/base_calendar/i18n/en_US.po
[2010-12-13 12:43:03,460][openerp6trunk1] INFO:init:module base_action_rule: no quality certificate
[2010-12-13 12:43:03,460][openerp6trunk1] INFO:init:module base_action_rule: loading base_action_rule_data.xml
[2010-12-13 12:43:03,483][openerp6trunk1] INFO:init:module base_action_rule: loading base_action_rule_view.xml
[2010-12-13 12:43:03,531][openerp6trunk1] INFO:init:module base_action_rule: loading security/ir.model.access.csv
[2010-12-13 12:43:03,568][openerp6trunk1] INFO:i18n:module base_action_rule: loading translation file for language en_US
[2010-12-13 12:43:03,569][openerp6trunk1] INFO:i18n:loading /home/philu/work/openerp6/openobject-addons/base_action_rule/i18n/en_US.po
[2010-12-13 12:43:04,588][openerp6trunk1] INFO:init:module board: loading security/board_security.xml
[2010-12-13 12:43:04,595][openerp6trunk1] INFO:init:module board: loading security/ir.model.access.csv
[2010-12-13 12:43:04,624][openerp6trunk1] INFO:init:module board: loading wizard/board_menu_create_view.xml
[2010-12-13 12:43:04,640][openerp6trunk1] INFO:init:module board: loading board_view.xml
[2010-12-13 12:43:04,735][openerp6trunk1] INFO:init:module board: loading board_administration_view.xml
[2010-12-13 12:43:04,912][openerp6trunk1] INFO:init:module mail_gateway: no quality certificate
[2010-12-13 12:43:04,912][openerp6trunk1] INFO:init:module mail_gateway: loading mail_gateway_view.xml
[2010-12-13 12:43:05,023][openerp6trunk1] DEBUG:init:Domain value ([('res_id', '=', res_id),('res_model','=',model)]) for element with id "act_res_partner_ope
Traceback (most recent call last):
  File "/home/philu/work/openerp6/trunk/bin/tools/convert.py", line 464, in _tag_act_window
    domain = unsafe_eval(domain, eval_context)
  File "<string>", line 1, in <module>
NameError: name 'res_id' is not defined

The steps to produce this bug were:
1. Installed Python 2.6, Postgresql 8.4 on Centos 5.5 as per instructions from here:
https://powerphil.wordpress.com/2010/12/01/how-to-install-openerp-6-on-centos/

2. Got the latest from trunk using:
bzr branch lp:~openerp/openobject-server/trunk
bzr branch lp:openobject-addons
Bazaar (bzr update) reports that the server revision is 3087 and the addons revision is 3999.

3. Had trouble running XML-RPC so switched to Net-RPC by updating the
~/.openerp-serverrc file.

4. Started the server OK.

5. Connect using the OpenERP GTK Client 6.0RC1 running on Windows 7
64-bit.

5. Created a new empty database ("openerp6trunk1") with extended UI, NO
demo data.

6. At the "Install Applications" screen, selected these to install:
  - Customer Relationship Management
  - Warehouse Management
  - Invoicing
  - Purchase Management
  - Extra Tools
  - Point of Sales
  - Sales Management
  - Accounting & Finance
  - Advanced Reporting
and clicked "Install".

7. Watched the log file and noted this error as reported above.

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/689484

Title:
  NameError: name 'res_id' is not defined

Status in OpenObject Server:
  New

Bug description:
  Did a fresh clean installation of OpenERP6 server; as the system was installing the initial modules, got the message, "NameError: name 'res_id' is not defined" in the log file.

Installation proceeded, with no indication of the error to the user.

Excerpt from server log file:
[2010-12-13 12:42:57,727][openerp6trunk1] INFO:init:module process: loading security/ir.model.access.csv
[2010-12-13 12:42:57,773][openerp6trunk1] INFO:init:module process: loading process_view.xml
[2010-12-13 12:42:58,002][openerp6trunk1] INFO:init:module base_calendar: no quality certificate
[2010-12-13 12:42:58,002][openerp6trunk1] INFO:init:module base_calendar: loading base_calendar_data.xml
[2010-12-13 12:42:58,079][openerp6trunk1] INFO:init:module base_calendar: loading security/ir.model.access.csv
[2010-12-13 12:42:58,111][openerp6trunk1] INFO:init:module base_calendar: loading wizard/calendar_event_edit_all_view.xml
[2010-12-13 12:42:58,128][openerp6trunk1] INFO:init:module base_calendar: loading wizard/base_calendar_invite_attendee_view.xml
[2010-12-13 12:42:58,146][openerp6trunk1] INFO:init:module base_calendar: loading wizard/base_calendar_set_exrule_view.xml
[2010-12-13 12:42:58,164][openerp6trunk1] INFO:init:module base_calendar: loading base_calendar_view.xml
[2010-12-13 12:42:58,368][openerp6trunk1] INFO:i18n:module base_calendar: loading translation file for language en_US
[2010-12-13 12:42:58,369][openerp6trunk1] INFO:i18n:loading /home/philu/work/openerp6/openobject-addons/base_calendar/i18n/en_US.po
[2010-12-13 12:43:03,460][openerp6trunk1] INFO:init:module base_action_rule: no quality certificate
[2010-12-13 12:43:03,460][openerp6trunk1] INFO:init:module base_action_rule: loading base_action_rule_data.xml
[2010-12-13 12:43:03,483][openerp6trunk1] INFO:init:module base_action_rule: loading base_action_rule_view.xml
[2010-12-13 12:43:03,531][openerp6trunk1] INFO:init:module base_action_rule: loading security/ir.model.access.csv
[2010-12-13 12:43:03,568][openerp6trunk1] INFO:i18n:module base_action_rule: loading translation file for language en_US
[2010-12-13 12:43:03,569][openerp6trunk1] INFO:i18n:loading /home/philu/work/openerp6/openobject-addons/base_action_rule/i18n/en_US.po
[2010-12-13 12:43:04,588][openerp6trunk1] INFO:init:module board: loading security/board_security.xml
[2010-12-13 12:43:04,595][openerp6trunk1] INFO:init:module board: loading security/ir.model.access.csv
[2010-12-13 12:43:04,624][openerp6trunk1] INFO:init:module board: loading wizard/board_menu_create_view.xml
[2010-12-13 12:43:04,640][openerp6trunk1] INFO:init:module board: loading board_view.xml
[2010-12-13 12:43:04,735][openerp6trunk1] INFO:init:module board: loading board_administration_view.xml
[2010-12-13 12:43:04,912][openerp6trunk1] INFO:init:module mail_gateway: no quality certificate
[2010-12-13 12:43:04,912][openerp6trunk1] INFO:init:module mail_gateway: loading mail_gateway_view.xml
[2010-12-13 12:43:05,023][openerp6trunk1] DEBUG:init:Domain value ([('res_id', '=', res_id),('res_model','=',model)]) for element with id "act_res_partner_ope
Traceback (most recent call last):
  File "/home/philu/work/openerp6/trunk/bin/tools/convert.py", line 464, in _tag_act_window
    domain = unsafe_eval(domain, eval_context)
  File "<string>", line 1, in <module>
NameError: name 'res_id' is not defined

The steps to produce this bug were:
1. Installed Python 2.6, Postgresql 8.4 on Centos 5.5 as per instructions from here:
https://powerphil.wordpress.com/2010/12/01/how-to-install-openerp-6-on-centos/

2. Got the latest from trunk using:
bzr branch lp:~openerp/openobject-server/trunk
bzr branch lp:openobject-addons
Bazaar (bzr update) reports that the server revision is 3087 and the addons revision is 3999.

3. Had trouble running XML-RPC so switched to Net-RPC by updating the ~/.openerp-serverrc file.

4. Started the server OK.

5. Connect using the OpenERP GTK Client 6.0RC1 running on Windows 7 64-bit.

5. Created a new empty database ("openerp6trunk1") with extended UI, NO demo data.

6. At the "Install Applications" screen, selected these to install:
  - Customer Relationship Management
  - Warehouse Management
  - Invoicing
  - Purchase Management
  - Extra Tools
  - Point of Sales
  - Sales Management
  - Accounting & Finance
  - Advanced Reporting
and clicked "Install".

7. Watched the log file and noted this error as reported above.





Follow ups

References