[IMP] report: better default footer for reports
(including TIN, bank accounts, better handling of separators...)
This commit is contained in:
committed by
Richard Mathot
parent
4840fff39b
commit
55de6cac47
@@ -91,13 +91,25 @@
|
||||
<li t-if="company.fax and company.phone">&bull;</li>
|
||||
<li t-if="company.fax">Fax: <span t-field="company.fax"/></li>
|
||||
|
||||
<li t-if="company.email">&bull;</li>
|
||||
<li t-if="company.email and company.fax or company.email and company.phone">&bull;</li>
|
||||
<li t-if="company.email">Email: <span t-field="company.email"/></li>
|
||||
|
||||
<li t-if="company.website">&bull;</li>
|
||||
<li t-if="company.website and company.email or company.website and company.fax or company.website and company.phone">&bull;</li>
|
||||
<li t-if="company.website">Website: <span t-field="company.website"/></li>
|
||||
</ul>
|
||||
|
||||
<ul t-if="not company.custom_footer" class="list-inline">
|
||||
<li t-if="company.vat">TIN: <span t-field="company.vat"/></li>
|
||||
<t t-set="is_first" t-value="True"/>
|
||||
<t t-foreach="company.bank_ids" t-as="bank">
|
||||
<t t-if="bank.footer">
|
||||
<li t-if="(is_first and company.vat) or (not is_first)">&bull;</li>
|
||||
<li><span t-esc="bank.bank_name"/>: (<span t-esc="bank.bank_bic"/>) <span t-esc="bank.acc_number"/></li>
|
||||
<t t-set="is_first" t-value="False"/>
|
||||
</t>
|
||||
</t>
|
||||
</ul>
|
||||
|
||||
<t t-if="company.custom_footer">
|
||||
<span t-raw="company.rml_footer"/>
|
||||
</t>
|
||||
|
||||
Reference in New Issue
Block a user