[FIX] account: company contact data

This is a complement of previous commit.

As a portal user, access one of your invoices from the frontend
(download the PDF). The generation of the report crashes because of an
access error. The error arises when trying to access the company banking
information displayed in the report footer.

opw-708581
This commit is contained in:
Nicolas Martinelli
2017-02-15 13:27:20 +01:00
parent ad50324a8e
commit 1b653178b6
+1 -1
View File
@@ -6,7 +6,7 @@
<xpath expr="//ul[@name='financial_infos']" position="inside">
<t t-if="not company.custom_footer">
<t t-set="is_first" t-value="True"/>
<t t-foreach="company.bank_journal_ids" t-as="journal">
<t t-foreach="company.bank_journal_ids.sudo()" t-as="journal">
<t t-set="bank_acc" t-value="journal.bank_account_id"/>
<t t-if="journal.display_on_footer">
<li t-if="(is_first and company.vat) or (not is_first)">&amp;bull;</li>