~tempo-openerp/openobject-addons/lw-extra

« back to all changes in this revision

Viewing changes to extra_account/report/account_print_invoice.rml

  • Committer: Quentin THEURET
  • Date: 2015-12-21 07:37:20 UTC
  • Revision ID: qt@tempo-consulting.fr-20151221073720-3b6a9983sikunn6a
[FIX] Bad displaying of bank accounts on customer invocie

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
        <blockTable colWidths="290.0,250.0" style="Table_Partner_Address">
147
147
            <tr>
148
148
                <td>
149
 
                        [[ not o.partner_bank_id and removeParentNode('td') ]]
 
149
                        [[ not o.partner_bank_id and removeParentNode('tr') ]]
150
150
                        <para style="terp_default_9"><b>Bank Details</b></para>
151
151
                    <para style="terp_default_8">
152
152
                        <font color="white"> </font>
160
160
                    <para style="terp_default_9">BIC : [[ o.partner_bank_id.bank_bic and format(o.partner_bank_id.bank_bic) or removeParentNode('para') ]]</para>
161
161
                </td>
162
162
                <td>
163
 
                    [[ o.partner_bank_id and removeParentNode('td') ]]
164
 
                    <para style="terp_default_9"><b>Bank Details</b></para>
165
163
                    <para style="terp_default_8">
166
164
                        <font color="white"> </font>
167
165
                    </para>
168
 
                    <para style="terp_default_9">[[ repeatIn(o.company_id.bank_ids,'bank') ]]</para>
169
 
                    <para style="terp_default_9">[[ format(bank.bank_name) ]]</para>
170
 
                    <para style="terp_default_9">Bank Office : [[ bank.office and format(bank.office) or removeParentNode('para') ]]</para>
171
 
                    <para style="terp_default_9">Bank Code : [[ bank.bank_code and format(bank.bank_code) or removeParentNode('para') ]]</para>
172
 
                    <para style="terp_default_9">Bank Key : [[ bank.key and format(bank.key) or removeParentNode('para') ]]</para>
173
 
                    <para style="terp_default_9">Bank Account Number : [[ bank.rib_acc_number and format(bank.rib_acc_number) or removeParentNode('para') ]]</para>
174
 
                    <para style="terp_default_9">BBAN : [[ bank.acc_number and format(bank.acc_number) or removeParentNode('para') ]]</para>
175
 
                    <para style="terp_default_9">BIC : [[ bank.bank_bic and format(bank.bank_bic) or removeParentNode('para') ]]</para>
 
166
                    <para style="terp_default_9">[[ o.partner_id.parent_id.name and o.partner_id.name and o.partner_id.parent_id.name.lower() == o.partner_id.name.lower() and removeParentNode('para') ]] [[ o.partner_id.name ]]</para>
 
167
                    <para style="terp_default_9">[[ display_address(o.partner_id) ]]</para>
 
168
                </td>
 
169
            </tr>
 
170
            <tr>
 
171
                <td>
 
172
                    [[ o.partner_bank_id and removeParentNode('tr') ]]
 
173
                    <blockTable colWidths="290.0" style="Table_Partner_Address">
 
174
                        <tr>
 
175
                            <td>
 
176
                                <para style="terp_default_9"><b>Bank Details</b></para>
 
177
                                <para style="terp_default_8">
 
178
                                    <font color="white"> </font>
 
179
                                </para>
 
180
                                <para style="terp_default_9">[[ repeatIn(o.company_id.bank_ids,'bank') ]]</para>
 
181
                                <para style="terp_default_9">[[ format(bank.bank_name) ]]</para>
 
182
                                <para style="terp_default_9">Bank Office : [[ bank.office and format(bank.office) or removeParentNode('para') ]]</para>
 
183
                                <para style="terp_default_9">Bank Code : [[ bank.bank_code and format(bank.bank_code) or removeParentNode('para') ]]</para>
 
184
                                <para style="terp_default_9">Bank Key : [[ bank.key and format(bank.key) or removeParentNode('para') ]]</para>
 
185
                                <para style="terp_default_9">Bank Account Number : [[ bank.rib_acc_number and format(bank.rib_acc_number) or removeParentNode('para') ]]</para>
 
186
                                <para style="terp_default_9">BBAN : [[ bank.acc_number and format(bank.acc_number) or removeParentNode('para') ]]</para>
 
187
                                <para style="terp_default_9">BIC : [[ bank.bank_bic and format(bank.bank_bic) or removeParentNode('para') ]]</para>
 
188
                            </td>
 
189
                        </tr>
 
190
                    </blockTable>
176
191
                </td>
177
192
                <td>
178
193
                    <para style="terp_default_8">