[5.0] company link in 'functions and addresses' on contact screen crashes web client
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/
cherrypy.
File "/usr/local/
return self.callable(
File "/usr/local/
return fn(*args, **kw)
File "/usr/local/
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) |