summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2014-05-27 22:50:14 +0200
committerFabien Pinckaers <fp@openerp.com>2014-05-27 22:50:14 +0200
commitb4adf79ea7335cd504eb7b2e0cbf79dc99c8f92b (patch)
tree89fe80af85e1b01604af4f88d31a37c2b1e5bf86
parent045285123f2551ca74753260fcf807af4bc413d0 (diff)
parentfe74741594cb653483fb37133e853595893a7a24 (diff)
Merge pull request #238 from odoo-dev/saas-4-ir_qweb-contact-chm
[FIX] ir_qweb: contact field must add 'http://' if the website url value has not any protocol
-rw-r--r--openerp/addons/base/ir/ir_qweb.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/addons/base/ir/ir_qweb.xml b/openerp/addons/base/ir/ir_qweb.xml
index d021d496fdc..c69dc17c851 100644
--- a/openerp/addons/base/ir/ir_qweb.xml
+++ b/openerp/addons/base/ir/ir_qweb.xml
@@ -20,7 +20,7 @@
<div t-if="fax and 'fax' in fields" class='css_editable_mode_hidden'><i t-if="not options.get('no_marker')" class='fa fa-file-text-o'/> <span itemprop="faxNumber" t-esc="fax"/></div>
<div t-if="website and 'website' in fields" class='css_editable_mode_hidden'>
<i t-if="not options.get('no_marker')" class='fa fa-globe'/>
- <a t-att-href="website"><span itemprop="website" t-esc="website"/></a>
+ <a t-att-href="website and '%s%s' % ('http://' if '://' not in website else '',website)"><span itemprop="website" t-esc="website"/></a>
</div>
<div t-if="email and 'email' in fields" class='css_editable_mode_hidden'><i t-if="not options.get('no_marker')" class='fa fa-envelope'/> <span itemprop="email" t-esc="email"/></div>
</div>