Name error generated when db created without demo and assign value on action
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
Install crm and click on the following menus in web-client:
1.Sales -> Leads.
2.Sales -> Oppurtunities.
3.Phone Calls -> Logged Calls.
4.Phone Calls -> Scheduled Calls.
It gives the following traceback:
Client Traceback (most recent call last):
File "/home/
response[
File "/home/
value = clean_action(req, action[0], do_not_eval)
File "/home/
action[
File "<string>", line 1, in <module>
NameError: name 'section_id' is not defined
Thanks,
Divyesh
affects: | openerp-web → openobject-addons |
Hello Divyesh,
Problem occurs only when we have installed a db without demo, because on menu action 'section_id' is a value, and if we didn't install demo then section_id doesn't find when called the action.
I have checked your commit but it doesn't correct because you have change the section_id to 'section_id', as I said section_id is a value that's why we can not passed section_id in ''. If you passed the section_id as a 'section' it will never check the salesteam on context. Also on gtk you have faced the following error.
ValueError: invalid literal for int() with base 10: 'section_id'
So as per my "opinion', this should be fix from web side, on 6.1 with same code all are working expected. Problem occurs only on trunk without demo data, and we never option this view.
Thanks!