summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-12-14 17:35:58 +0200
committerP. Christeas <p_christ@hol.gr>2010-12-14 17:35:58 +0200
commit56d65e54feb930e7bc90576c0b65e668fe6d1ced (patch)
tree0e2f59e61c1cf766eed75985a399a8dddcd647f9
parentbb8533edc6ed45ecb4996f1f7951b5ccbaccd9c0 (diff)
account: fix invoice report, second page header must be in partner's lang
The PTO header for the second+ pages was rendered before the setting of partner's language, which meant that it would be translated to the user's lang. Move the xml block to fix that. bzr revid: p_christ@hol.gr-20101214153558-b93h81ys6fhad5w1
-rw-r--r--addons/account/report/account_print_invoice.rml36
1 files changed, 12 insertions, 24 deletions
diff --git a/addons/account/report/account_print_invoice.rml b/addons/account/report/account_print_invoice.rml
index 6e67879d81c..80ccd2aabae 100644
--- a/addons/account/report/account_print_invoice.rml
+++ b/addons/account/report/account_print_invoice.rml
@@ -131,32 +131,20 @@
</stylesheet>
<story>
<pto>
- <pto_header>
- <blockTable colWidths="202.0,87.0,71.0,57.0,42.0,71.0" style="Table7">
- <tr>
- <td>
- <para style="terp_tblheader_Details">Description</para>
- </td>
- <td>
- <para style="terp_tblheader_Details_Centre">Taxes</para>
- </td>
- <td>
- <para style="terp_tblheader_Details_Centre">Quantity</para>
- </td>
- <td>
- <para style="terp_tblheader_Details_Right">Unit Price </para>
- </td>
- <td>
- <para style="terp_tblheader_Details_Right">Disc.(%)</para>
- </td>
- <td>
- <para style="terp_tblheader_Details_Right">Price</para>
- </td>
- </tr>
- </blockTable>
- </pto_header>
<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
<para style="terp_default_8">[[ setLang(o.partner_id.lang) ]]</para>
+ <pto_header><!-- Must be after setLang() -->
+ <blockTable colWidths="202.0,87.0,71.0,57.0,42.0,71.0" style="Table7">
+ <tr>
+ <td> <para style="terp_tblheader_Details">Description</para> </td>
+ <td> <para style="terp_tblheader_Details_Centre">Taxes</para> </td>
+ <td> <para style="terp_tblheader_Details_Centre">Quantity</para> </td>
+ <td> <para style="terp_tblheader_Details_Right">Unit Price </para> </td>
+ <td> <para style="terp_tblheader_Details_Right">Disc.(%)</para> </td>
+ <td> <para style="terp_tblheader_Details_Right">Price</para> </td>
+ </tr>
+ </blockTable>
+ </pto_header>
<blockTable colWidths="297.0,233.0" style="Table_Partner_Address">
<tr>
<td>