[FIX] form_view: field url, don't add http for local link

bzr revid: chm@openerp.com-20130225160932-yfoxmpkf8td9hr8k
This commit is contained in:
Christophe Matthieu 2013-02-25 17:09:32 +01:00
parent 4e96f620e1
commit 18387d7e0b
1 changed files with 1 additions and 1 deletions

View File

@ -2333,7 +2333,7 @@ instance.web.form.FieldUrl = instance.web.form.FieldChar.extend({
this._super();
} else {
var tmp = this.get('value');
var s = /(\w+):(.+)/.exec(tmp);
var s = /(\w+):(.+)|^\.{0,2}\//.exec(tmp);
if (!s) {
tmp = "http://" + this.get('value');
}