← 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

 

This is happening in the 6.1 stabel webclient also.

I guess it has something to do with:
4525 [FIX] m2o missing record: don't leave incorrect values in th...
[FIX] m2o missing record: don't leave incorrect values in the m2o text field when not creating unknown related object
4524 [FIX] m2o: context values can contain 'self' which is a refe... 

I will check if revisions before 4524 (of the 6.0 branch) work.

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



References