[5.0] company link in 'functions and addresses' on contact screen crashes web client

Bug #641486 reported by Russell Briggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
In Progress
Undecided
Sananaz (Open ERP)

Bug Description

This is on the 5.0 stable server and web client

To replicate:
 - Install the base_contact module
 - link a contact with a company
 - Go to the Contact screen, and on the General tab, in the 'Functions and Addresses' list, click one of the links in the Partner column (in view mode, not edit mode)

The web client crashes with the following error:

HTTP Traceback (most recent call last):
  File "/usr/local/bin/openerp/web/lib/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/usr/local/bin/openerp/web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/usr/local/bin/openerp/web/openerp/controllers/base.py", line 130, in wrapper
    return fn(*args, **kw)
  File "/usr/local/bin/openerp/web/openerp/tools/expose.py", line 211, in func_wrapper
    res = func(*args, **kw)
TypeError: view() takes at least 3 non-keyword arguments (1 given)

The issue is caused because m2o.js does not pass the model name to the 'view' action.

The reason is that there are two SPANs on the contact screen with id="name":

 - one is the Contact's surname
 - the 2nd is the 'name' (Partner) column from the functions and addresses list

This issue has occured since revision 2889 of the web client (where the static <A> link was replaced with the javascript call to open_record)

Related branches

Changed in openobject-client-web:
status: New → Confirmed
Changed in openobject-client-web:
assignee: nobody → Jra (Open ERP) (jra-openerp)
status: Confirmed → In Progress
Changed in openobject-client-web:
assignee: Jra (Open ERP) (jra-openerp) → sma (Open ERP) (sma-tiny)
assignee: sma (Open ERP) (sma-tiny) → nobody
assignee: nobody → sma (Open ERP) (sma-tiny)
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.