[FIX] form_view: field url, don't add http for local link
bzr revid: chm@openerp.com-20130225160932-yfoxmpkf8td9hr8k
This commit is contained in:
parent
4e96f620e1
commit
18387d7e0b
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue