[IMP] cosmetic changes
This commit is contained in:
parent
eec03dd09b
commit
d984bff9cb
|
@ -65,7 +65,7 @@
|
|||
<tbody class="sale_tbody">
|
||||
<tr t-foreach="o.order_line" t-as="l">
|
||||
<td>
|
||||
<span t-field="l.name"/>
|
||||
<span t-field="l.name"/>
|
||||
</td>
|
||||
<td>
|
||||
<span t-esc="', '.join(map(lambda x: x.name, l.tax_id))"/>
|
||||
|
|
|
@ -23,6 +23,24 @@
|
|||
<xpath expr="//body" position="attributes">
|
||||
<attribute name="class">container</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//header" position="replace"/>
|
||||
<xpath expr="//footer" position="replace">
|
||||
<ul class="list-inline js_language_selector mt16" t-if="(request and request.website_multilang and len(languages) > 1) or (website and editable)">
|
||||
<li t-foreach="languages" t-as="lg">
|
||||
<a t-att-href="url_for(request.httprequest.path + '?' + keep_query(), lang=lg[0])"
|
||||
t-att-data-default-lang="editable and 'true' if website and lg[0] == website.default_lang_code else None">
|
||||
<t t-esc="lg[1].split('/').pop()"/>
|
||||
</a>
|
||||
</li>
|
||||
<li groups="base.group_website_publisher">
|
||||
<t t-set="url_return" t-value="url_for('', '[lang]') + '?' + keep_query()"/>
|
||||
<a t-attf-href="/web#action=base.action_view_base_language_install&website_id=#{website.id if website else ''}&url_return=#{url_return}">
|
||||
<i class="fa fa-plus-circle"/>
|
||||
Add a language...
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</xpath>
|
||||
<!-- Correct view inheritance -->
|
||||
<xpath expr="//t[@t-name='website.layout']" position="attributes">
|
||||
<attribute name="t-name">website_report.layout</attribute>
|
||||
|
@ -32,7 +50,7 @@
|
|||
|
||||
<template id="website_html_container" inherit_id="report.html_container">
|
||||
<xpath expr="//t[@t-call='report.layout']" position="replace">
|
||||
<t t-call="website_report.layout">
|
||||
<t t-call="website_report.layout">
|
||||
<t t-raw="0"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
|
Loading…
Reference in New Issue