← Back to team overview

openerp-dev-web team mailing list archive

[Bug 729354] [NEW] [trunk] ManyToOne().open_record() JS function on 'onclick' action doesn't work

 

Sananaz (Open ERP) (sma-tiny) has assigned this bug to you for OpenERP Web Client:

Steps to reproduce:
    1) Go to Sales -> Address Book -> Customers. 
    2) Go to form view of any customer. 
    3) Click on m2o object link, for example, Country.

Expected behaviour:
    Window or popup of related record must be opened.

Actual behaviour:
    Nothing happened.

Checked in Opera 11.01, Firefox 4.0b, Google Chrome 8.
JS error traceback in Opera console:

####
Uncaught exception: TypeError: Cannot convert 'this.text' to object

Error thrown at line 186, column 4 in <anonymous function: ManyToOne.prototype.get_context>() in http://localhost:8080/openerp/static/javascript/m2o.js:
    return jQuery(this.field).attr('context').replace(
called from line 147, column 4 in <anonymous function: ManyToOne.prototype.open>(id) in http://localhost:8080/openerp/static/javascript/m2o.js:
    eval_domain_context_request({
called from line 131, column 8 in <anonymous function: ManyToOne.prototype.open_record>() in http://localhost:8080/openerp/static/javascript/m2o.js:
    this.open(this.field.value);
called from line 1, column 0 in <anonymous function>(event):
    new ManyToOne('country_id').open_record('183')
####

** Affects: openobject-client-web
     Importance: Low
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

-- 
[trunk] ManyToOne().open_record() JS function on 'onclick' action doesn't work
https://bugs.launchpad.net/bugs/729354
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.