← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Hello Denis Konchekov, m.karrer,

The fix for web-client has been committed to lp:~openerp-dev/openobject-client-web/trunk-bug-729354-sma
with the following revision.
Revision-info:
4590 sma@xxxxxxxxxxx-20110218101318-dm5ghujm4i2a1jjv

Soon it will be merged into trunk web-client.

Thank you for notifying.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/729354

Title:
  [trunk] ManyToOne().open_record() JS function on 'onclick' action
  doesn't work

Status in OpenERP Web Client:
  In Progress

Bug description:
  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')
  ####



References