[FIX?] Probably fix something... ? See previous revision.

bzr revid: fme@openerp.com-20121115182331-0vz3beb6x2od9xhs
This commit is contained in:
Fabien Meghazi 2012-11-15 19:23:31 +01:00
parent cf2d4581be
commit 8c2764115f
1 changed files with 1 additions and 1 deletions

View File

@ -4952,7 +4952,7 @@ instance.web.form.FieldBinaryImage = instance.web.form.FieldBinary.extend({
if (this.get('value') && ! /^\d+(\.\d*)? \w+$/.test(this.get('value'))) {
url = 'data:image/png;base64,' + this.get('value');
} else if (this.get('value')) {
var id = escape(JSON.stringify(this.view.datarecord.id || null));
var id = JSON.stringify(this.view.datarecord.id || null);
var field = this.name;
if (this.options.preview_image)
field = this.options.preview_image;