← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

Public bug reported:

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: Undecided
         Status: New

-- 
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:
  New

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')
  ####



Follow ups

References