[IMP] generic: Open external links in a new tab by default

Purpose
=======

External links in the data sometimes open in the same tab, the users loses times as he has to come back (and looses the context).

Specification
=============

Any external links in data (planners, settings) should open in new tabs.
This commit is contained in:
mmo
2017-02-10 14:29:29 +01:00
committed by Yannick Tivisse
parent 3c9e6c89e7
commit 33b09d0d5e
21 changed files with 37 additions and 37 deletions
@@ -129,7 +129,7 @@ from ${object.company_id.name}.
</tr>
<tr>
<td align="center">
Powered by <a href="https://www.odoo.com">Odoo</a>.
Powered by <a target="_blank" href="https://www.odoo.com">Odoo</a>.
</td>
</tr>
</tbody>
+1 -1
View File
@@ -163,7 +163,7 @@
<div class="o_setting_right_pane">
<label for="module_print_docsaway"/>
<div class="text-muted">
Mail your invoices in one-click using <a href="https://www.docsaway.com/">Docsaway</a>
Mail your invoices in one-click using <a target="_blank" href="https://www.docsaway.com/">Docsaway</a>
</div>
</div>
</div>
+3 -3
View File
@@ -132,7 +132,7 @@
<ul>
% if object.event_id.location:
<li>Location: ${object.event_id.location}
(<a href="http://maps.google.com/maps?oi=map&q=${object.event_id.location}">View Map</a>)
(<a target="_blank" href="http://maps.google.com/maps?oi=map&q=${object.event_id.location}">View Map</a>)
</li>
% endif
% if object.event_id.description :
@@ -224,7 +224,7 @@
<ul>
% if object.event_id.location:
<li>Location: ${object.event_id.location}
(<a href="http://maps.google.com/maps?oi=map&q=${object.event_id.location}">View Map</a>)
(<a target="_blank" href="http://maps.google.com/maps?oi=map&q=${object.event_id.location}">View Map</a>)
</li>
% endif
% if object.event_id.description :
@@ -316,7 +316,7 @@
<ul>
% if object.event_id.location:
<li>Location: ${object.event_id.location}
(<a href="http://maps.google.com/maps?oi=map&q=${object.event_id.location}">View Map</a>)
(<a target="_blank" href="http://maps.google.com/maps?oi=map&q=${object.event_id.location}">View Map</a>)
</li>
% endif
% if object.event_id.description :
+3 -3
View File
@@ -94,10 +94,10 @@
<span>We would be delighted to assist you along the way. Contact us through our
<a href="https://www.odoo.com/help">support form</a> if you have any question.
You can also discover how to get the best out of Odoo CRM with our </span>
<a href="https://www.odoo.com/documentation/user/10.0/crm.html">
<a target="_blank" href="https://www.odoo.com/documentation/user/10.0/crm.html">
<span style="text-decoration:underline;">User Documentation</span></a>
</span><span> or with our </span>
<a href="https://www.odoo.com/documentation">
<a target="_blank" href="https://www.odoo.com/documentation">
<span style="text-decoration:underline;">API Documentation</span></a>
</p>
<br>
@@ -107,7 +107,7 @@
</tbody>
</table>
<div dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;color:grey">
<span><br/>-- <br/>The Odoo Team<br/>PS: People love Odoo, check </span><a href="https://twitter.com/odoo/favorites"><span style="text-decoration:underline;">what they say about it.</span></a></span>
<span><br/>-- <br/>The Odoo Team<br/>PS: People love Odoo, check </span><a target="_blank" href="https://twitter.com/odoo/favorites"><span style="text-decoration:underline;">what they say about it.</span></a></span>
</div>
</div>]]></field>
</record>
+2 -2
View File
@@ -22,8 +22,8 @@
it.
</p><p>
We are here to help you. If you get stuck, do not hesitate to
reach our <a href="https://www.odoo.com/help">support team</a> or
<a href="https://www.odoo.com/documentation/user/">browse the documentation</a>.
reach our <a target="_blank" href="https://www.odoo.com/help">support team</a> or
<a target="_blank" href="https://www.odoo.com/documentation/user/">browse the documentation</a>.
</p><p>
Have fun deploying your sales strategy,
</p>
+1 -1
View File
@@ -186,7 +186,7 @@
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
</ul>
<p>&nbsp;</p>
<p>For more information on the program, please explore <a href="http://www.openerp.com/services/technical-training">http://www.openerp.com/services/technical-training</a>.</p>
<p>For more information on the program, please explore <a target="_blank" href="http://www.openerp.com/services/technical-training">http://www.openerp.com/services/technical-training</a>.</p>
<p>If you have a question<strong>&nbsp;concerning the content of the training</strong>, please contact <a href="mailto:events@yourcompany.com">events@yourcompany.com</a>.</p>
<p>&nbsp;</p>
<p><strong>Where to find us:</strong></p>
+1 -1
View File
@@ -150,7 +150,7 @@ ${object.body | safe}
</a>
% endif
using
<a href="https://www.odoo.com" style="text-decoration:none; color: #875A7B;">Odoo</a>.
<a target="_blank" href="https://www.odoo.com" style="text-decoration:none; color: #875A7B;">Odoo</a>.
</p>
</div>]]></field>
</record>
+1 -1
View File
@@ -50,7 +50,7 @@
View <t t-esc="object._description.lower()"/>
</a>
</p>
<p style="color:#9E588B;">Powered by <a href="https://www.odoo.com">Odoo</a>.</p>
<p style="color:#9E588B;">Powered by <a target="_blank" href="https://www.odoo.com">Odoo</a>.</p>
</template>
<template id="message_activity_done">
File diff suppressed because one or more lines are too long
@@ -3,7 +3,7 @@
<h2 class="oe_slogan" style="color:#875A7B;">Smart Point of Sale</h2>
<h3 class="oe_slogan">Easy to use &amp; compatible with any device.</h3>
<div class="oe_centeralign oe_mt32 oe_mb32">
<a href="https://www.youtube.com/watch?v=bncoCFGYucI" class="oe_button oe_big oe_tacky">Watch the video</a>
<a target="_blank" href="https://www.youtube.com/watch?v=bncoCFGYucI" class="oe_button oe_big oe_tacky">Watch the video</a>
</div>
</div>
</section>
@@ -96,10 +96,10 @@
<span>We would be delighted to assist you along the way. Contact us through our
<a href="https://www.odoo.com/help">support form</a> if you have any question.
You can also discover how to get the best out of Odoo Project with our </span>
<a href="https://www.odoo.com/documentation/user/10.0/project.html">
<a target="_blank" href="https://www.odoo.com/documentation/user/10.0/project.html">
<span style="text-decoration:underline;">User Documentation</span></a>
</span><span> or with our </span>
<a href="https://www.odoo.com/documentation">
<a target="_blank" href="https://www.odoo.com/documentation">
<span style="text-decoration:underline;">API Documentation</span></a>
</p>
<br>
@@ -109,7 +109,7 @@
</tbody>
</table>
<div dir="ltr" style="font-size:13px;margin-top:0pt;margin-bottom:8pt;color:grey">
<span><br/>-- <br/>The Odoo Team<br/>PS: People love Odoo, check </span><a href="https://twitter.com/odoo/favorites"><span style="text-decoration:underline;">what they say about it.</span></a></span>
<span><br/>-- <br/>The Odoo Team<br/>PS: People love Odoo, check </span><a target="_blank" href="https://twitter.com/odoo/favorites"><span style="text-decoration:underline;">what they say about it.</span></a></span>
</div>
</div>]]></field>
</record>
+1 -1
View File
@@ -100,7 +100,7 @@
% if object.project_id.rating_status == 'periodic':
<p>This customer survey is sent <b>${object.project_id.rating_status_period}</b> as long as the task is in the <b>${object.stage_id.name}</b> stage.
% endif
<p>Email automatically sent by <a href="https://www.odoo.com/page/project-management" style="color:#875A7B;text-decoration:none;">Odoo Project</a> for <a href="${object.project_id.company_id.website}" style="color:#875A7B;text-decoration:none;">${object.project_id.company_id.name}</a></p>
<p>Email automatically sent by <a target="_blank" href="https://www.odoo.com/page/project-management" style="color:#875A7B;text-decoration:none;">Odoo Project</a> for <a href="${object.project_id.company_id.website}" style="color:#875A7B;text-decoration:none;">${object.project_id.company_id.name}</a></p>
</td></tr>
</tbody>
</table>
+1 -1
View File
@@ -128,7 +128,7 @@ from ${object.company_id.name}.
</tr>
<tr>
<td align="center">
Powered by <a href="https://www.odoo.com">Odoo</a>.
Powered by <a target="_blank" href="https://www.odoo.com">Odoo</a>.
</td>
</tr>
</tbody>
+1 -1
View File
@@ -14,7 +14,7 @@
{% block relbar1 %}{% endblock %}
{% block relbar2 %}
{% if theme_github_fork %}
<a href="http://github.com/{{ theme_github_fork }}"><img style="position: fixed; top: 0; right: 0; border: 0;"
<a target="_blank" href="http://github.com/{{ theme_github_fork }}"><img style="position: fixed; top: 0; right: 0; border: 0;"
src="static/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
{% endif %}
{% endblock %}
@@ -99,7 +99,7 @@
<t t-set="planners" t-value="widget.planners"/>
<t t-call="DashboardPlanner.PlannersList"/>
<hr/>
Need more help? <a href="https://www.odoo.com/documentation/user">Browse the documentation.</a>
Need more help? <a target="_blank" href="https://www.odoo.com/documentation/user">Browse the documentation.</a>
</div>
</t>
+3 -3
View File
@@ -202,8 +202,8 @@
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Create a <a href="http://www.odoo.com/page/website-builder">free website</a> with
<a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>
Create a <a target="_blank" href="http://www.odoo.com/page/website-builder">free website</a> with
<a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>
</div>
<div class="pull-left text-muted" itemscope="itemscope" itemtype="http://schema.org/Organization">
Copyright &amp;copy; <span t-field="res_company.name" itemprop="name">Company name</span>
@@ -495,7 +495,7 @@
<small>Odoo Version <t t-raw="version.get('server_version')"/></small>
</h1>
<p>
Information about the <t t-esc="res_company.name"/> instance of Odoo, the <a href="https://www.odoo.com">Open Source ERP</a>.
Information about the <t t-esc="res_company.name"/> instance of Odoo, the <a target="_blank" href="https://www.odoo.com">Open Source ERP</a>.
</p>
<div class="alert alert-warning alert-dismissable mt16" groups="website.group_website_publisher">
@@ -131,7 +131,7 @@
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
</ul><p></p>
<p>To get more information, visit the <a href="http://odoo.com/">Odoo Official Website</a>.</p>
<p>To get more information, visit the <a target="_blank" href="http://odoo.com/">Odoo Official Website</a>.</p>
</div>
</div>
</div>
@@ -289,7 +289,7 @@
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
</ul><p></p>
<p>To get more information, visit the <a href="http://odoo.com/">Odoo Official Website</a>.</p>
<p>To get more information, visit the <a target="_blank" href="http://odoo.com/">Odoo Official Website</a>.</p>
</div>
</div>
</div>
@@ -459,7 +459,7 @@
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
</ul><p></p>
<p>To get more information, visit the <a href="https://www.odoo.com/">Odoo Official Website</a>.</p>
<p>To get more information, visit the <a target="_blank" href="https://www.odoo.com/">Odoo Official Website</a>.</p>
</div>
</div>
</div>
@@ -636,8 +636,8 @@
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>.
Try the <a href="http://www.odoo.com/page/website-builder">open source website builder</a>.
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>.
Try the <a target="_blank" href="http://www.odoo.com/page/website-builder">open source website builder</a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
@@ -410,7 +410,7 @@
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
</ul><p>&amp;nbsp;</p>
<p>To get more information, visit the <a href="https://www.odoo.com/">Odoo Official Website</a>.</p>
<p>To get more information, visit the <a target="_blank" href="https://www.odoo.com/">Odoo Official Website</a>.</p>
</div>
</div>
</div>
@@ -515,7 +515,7 @@
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
</ul><p></p>
<p>To get more information, visit the <a href="http://openerp.com/">Odoo Official Website</a>.</p>
<p>To get more information, visit the <a target="_blank" href="http://openerp.com/">Odoo Official Website</a>.</p>
</div>
</div>
</div>
@@ -702,8 +702,8 @@
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
an awesome <a href="http://www.odoo.com/page/crm">Open Source CRM</a>.
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
an awesome <a target="_blank" href="http://www.odoo.com/page/crm">Open Source CRM</a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span>
+2 -2
View File
@@ -1752,8 +1752,8 @@
<xpath expr="//footer" position="inside">
<div class="container mt16 mb8">
<div class="pull-right" t-ignore="true" t-if="not editable">
Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
the #1 <a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>.
Powered by <a target="_blank" class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>,
the #1 <a target="_blank" href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>.
</div>
<div class="pull-left text-muted">
Copyright &amp;copy; <span t-field="res_company.name">Company name</span></div>