[6.0] Opening of new window causes call to model with wrong IDs !

Bug #810746 reported by claude dunnigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Medium
OpenERP Publisher's Warranty Team

Bug Description

runnign 6.0.2 LTS on linux server with latest pull and updates
openerp 6.0.2 stable
server:3464
webclient:4668
addons:4715

ive been importing leads in a db, if i import 205, no problem, if i import 200 more, then at last screen to convert to opportunities wizard, i get this msg,

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2944, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 3064, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/fields.py", line 800, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_ui_menu.py", line 132, in _get_full_name
    res[m.id] = self._get_one_full_name(m)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_ui_menu.py", line 138, in _get_one_full_name
    if menu.parent_id:
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 294, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field parent_id not found in browse_record(ir.ui.menu, 4614)'

note that the error is visual, the lead do get converted, and in gtk, its fine, so, is there a limit on the data thos leads contains ? cause a limit at 205 leads is ridiculous, at 206 then the visual bug start...
and yes, there a lot of notes on those leads

Tags: maintenance

Related branches

Revision history for this message
claude dunnigan (claudedunnigan) wrote :

Ok, Just did latest pull, created new db (french), no demo stuff, all certified modules of crm, L10N_CA chart of account and L10n_toponyms for Canadian provinces, created my users (some are in english language), specially sales team that is on the lead import list, imported and same thing, same error, got my list down to 512, does work fine in gtk, but a salesman away from office will use web client

This is a bug that can be reproduce if you have a large lead list, (over 300)

Revision history for this message
claude dunnigan (claudedunnigan) wrote :

list of module installed

account Accounting
account_chart Accounting
account_voucher
analytic Projects & Services
base
base_action_rule
base_calendar
base_contac
base_iban
base_setup
base_vat
board
crm CRM & SRM
crm_claim
crm_helpdesk
decimal_precision
l10n_ca Account Charts Canada - English and French Canadian Chart of Accounts Savoir-faire Linux
l10n_ca_toponyms Canada Canada - Provinces, Territories Savoir-faire Linux
mail_gateway
process
procurement
product
resource
sale
sale_crm
stock
web_livechat

Revision history for this message
claude dunnigan (claudedunnigan) wrote :
Download full text (5.6 KiB)

Error as seen in ubuntu server log for webclient

[18/Jul/2011:14:36:36] HTTP Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/controllers/_root.py", line 90, in default
    return request.handler()
  File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/utils.py", line 112, in wrapper
    return fn(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_expose.py", line 182, in func_wrapper
    res = func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_validate.py", line 88, in func_wrapper
    return func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/openobject/tools/_validate.py", line 105, in func_wrapper
    return func(*args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/form.py", line 433, in save
    res = self.button_action(params)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/form.py", line 573, in button_action
    return self.BUTTON_ACTIONS_BY_BTYPE[btype](self, button_name, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/form.py", line 528, in button_action_object
    return actions.execute(res, ids=[id], context=ctx)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/actions.py", line 401, in execute
    return action_executor(action, data)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/actions.py", line 200, in act_window
    return act_window_opener(action, data)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/controllers/actions.py", line 371, in act_window_opener
    parent = rpc.RPCProxy('ir.ui.menu').read([int(data['context']['active_id'])],['complete_name'], rpc.session.context)[0]['complete_name'].split('/')[0]
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/utils/rpc.py", line 396, in <lambda>
    return lambda *args: self(name, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.2-py2.6.egg/addons/openerp/utils/rpc.py", line 405, in __call__
    self._resource, *args)
  File "/usr/local/lib/python2.6/dist-packages/openerp_web...

Read more...

Revision history for this message
claude dunnigan (claudedunnigan) wrote :

error as seen in openerp server log

[2011-07-18 15:51:20,218][comlabreproduce] WARNING:osv.browse_record.ir.ui.menu:No field_values found for ids [1104] in browse_record(ir.ui.menu, 1104)
[2011-07-18 15:51:20,219][comlabreproduce] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 2944, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 3064, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/fields.py", line 800, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_ui_menu.py", line 132, in _get_full_name
    res[m.id] = self._get_one_full_name(m)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_ui_menu.py", line 138, in _get_one_full_name
    if menu.parent_id:
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/orm.py", line 294, in __getattr__
    raise AttributeError(e)
AttributeError: 'Field parent_id not found in browse_record(ir.ui.menu, 1104)'

description: updated
description: updated
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Claude,

Disregard to the no. of records, this seems getting generated due to a little mismanagement of active_id.

Thanks.

tags: added: maintenance
Changed in openobject-client-web:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
Changed in openobject-client-web:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Claude,

We confirm the error. It has been introduced due to the fix over http://bazaar.launchpad.net/~openerp/openobject-client-web/6.0/revision/4642#addons/openerp/controllers/actions.py. (While trying to fix https://bugs.launchpad.net/openobject-client-web/+bug/786751)

We will rectify the fixes soon and find the elegant fixes for both the issues.

Thanks.

Changed in openobject-client-web:
milestone: none → 6.0.3
summary: - leads limit on web client before error msg on convert wizard ?
+ [6.0] Opening of new window causes call to model with wrong IDs !
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Dear subscribers,

We have fixed the problem by revision 4676 <email address hidden>.

This is actually a revert of the fix which caused the regression.

Hence, we reopen the bug 786751

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.