~unifield-team/unifield-web/main

« back to all changes in this revision

Viewing changes to addons/openerp/static/javascript/m2o.js

[MERGE] openerp-6.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
184
184
 * value of the m2o
185
185
 */
186
186
ManyToOne.prototype.get_context = function () {
 
187
    if(!this.text) {
 
188
        return jQuery(this.field).attr('context');
 
189
    }
187
190
    return jQuery(this.field).attr('context').replace(
188
191
            /\bself\b/g, "'" + this.text.value + "'");
189
192
};