← Back to team overview

openerp-india team mailing list archive

[Bug 1277613] [NEW] Account: Incosistent headers in invoice report

 

Public bug reported:

The invoice report has different table headers for the first page and
all the others page. that's because pto_header (the 'repeting' header)
in account_print_invoice.rml is different than the 'normal' header (the
one used in the first page).

pto_header:
    <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"><b>Description</b></para></td>
        <td><para style="terp_tblheader_Details_Centre"><b>Taxes</b></para></td>
        <td><para style="terp_tblheader_Details_Centre"><b>Quantity</b></para></td>
        <td><para style="terp_tblheader_Details_Right"><b>Unit Price</b></para></td>
        <td><para style="terp_tblheader_Details_Right"><b>Disc.(%)</b></para></td>
        <td><para style="terp_tblheader_Details_Right"><b>Price</b></para></td>
    </tr>
    </blockTable>
    </pto_header>

normal header:
    <blockTable colWidths="185.0,70.0,80.0,60.0,50.0,85.0" style="Table7">
      <tr>
        <td>
          <para style="terp_tblheader_General"><b>Description</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Centre"><b>Taxes</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Right"><b>Quantity</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Right"><b>Unit Price</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Right"><b>Disc.(%)</b></para>
        </td>
        <td>
          <para style="terp_tblheader_General_Right"><b>Price</b></para>
        </td>
      </tr>
    </blockTable>

Notice how the colWidths param of the blockTable element
       and the style param of the para element
are different.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

** Description changed:

  The invoice report has different table headers for the first page and
  all the others page. that's because pto_header (the 'repeting' header)
  in account_print_invoice.rml is different than the 'normal' header (the
  one used in the first page).
  
  pto_header:
-     <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"><b>Description</b></para></td>
-         <td><para style="terp_tblheader_Details_Centre"><b>Taxes</b></para></td>
-         <td><para style="terp_tblheader_Details_Centre"><b>Quantity</b></para></td>
-         <td><para style="terp_tblheader_Details_Right"><b>Unit Price</b></para></td>
-         <td><para style="terp_tblheader_Details_Right"><b>Disc.(%)</b></para></td>
-         <td><para style="terp_tblheader_Details_Right"><b>Price</b></para></td>
-     </tr>
-     </blockTable>
-     </pto_header>
+     <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"><b>Description</b></para></td>
+         <td><para style="terp_tblheader_Details_Centre"><b>Taxes</b></para></td>
+         <td><para style="terp_tblheader_Details_Centre"><b>Quantity</b></para></td>
+         <td><para style="terp_tblheader_Details_Right"><b>Unit Price</b></para></td>
+         <td><para style="terp_tblheader_Details_Right"><b>Disc.(%)</b></para></td>
+         <td><para style="terp_tblheader_Details_Right"><b>Price</b></para></td>
+     </tr>
+     </blockTable>
+     </pto_header>
  
  normal header:
-     <blockTable colWidths="185.0,70.0,80.0,60.0,50.0,85.0" style="Table7">
-       <tr>
-         <td>
-           <para style="terp_tblheader_General"><b>Description</b></para>
-         </td>
-         <td>
-           <para style="terp_tblheader_General_Centre"><b>Taxes</b></para>
-         </td>
-         <td>
-           <para style="terp_tblheader_General_Right"><b>Quantity</b></para>
-         </td>
-         <td>
-           <para style="terp_tblheader_General_Right"><b>Unit Price</b></para>
-         </td>
-         <td>
-           <para style="terp_tblheader_General_Right"><b>Disc.(%)</b></para>
-         </td>
-         <td>
-           <para style="terp_tblheader_General_Right"><b>Price</b></para>
-         </td>
-       </tr>
-     </blockTable>
+     <blockTable colWidths="185.0,70.0,80.0,60.0,50.0,85.0" style="Table7">
+       <tr>
+         <td>
+           <para style="terp_tblheader_General"><b>Description</b></para>
+         </td>
+         <td>
+           <para style="terp_tblheader_General_Centre"><b>Taxes</b></para>
+         </td>
+         <td>
+           <para style="terp_tblheader_General_Right"><b>Quantity</b></para>
+         </td>
+         <td>
+           <para style="terp_tblheader_General_Right"><b>Unit Price</b></para>
+         </td>
+         <td>
+           <para style="terp_tblheader_General_Right"><b>Disc.(%)</b></para>
+         </td>
+         <td>
+           <para style="terp_tblheader_General_Right"><b>Price</b></para>
+         </td>
+       </tr>
+     </blockTable>
+ 
+ Notice how the colWidths param of the blockTable element
+        and the style param of the para element
+ are different.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1277613

Title:
  Account:  Incosistent headers in invoice report

Status in OpenERP Addons (modules):
  New

Bug description:
  The invoice report has different table headers for the first page and
  all the others page. that's because pto_header (the 'repeting' header)
  in account_print_invoice.rml is different than the 'normal' header
  (the one used in the first page).

  pto_header:
      <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"><b>Description</b></para></td>
          <td><para style="terp_tblheader_Details_Centre"><b>Taxes</b></para></td>
          <td><para style="terp_tblheader_Details_Centre"><b>Quantity</b></para></td>
          <td><para style="terp_tblheader_Details_Right"><b>Unit Price</b></para></td>
          <td><para style="terp_tblheader_Details_Right"><b>Disc.(%)</b></para></td>
          <td><para style="terp_tblheader_Details_Right"><b>Price</b></para></td>
      </tr>
      </blockTable>
      </pto_header>

  normal header:
      <blockTable colWidths="185.0,70.0,80.0,60.0,50.0,85.0" style="Table7">
        <tr>
          <td>
            <para style="terp_tblheader_General"><b>Description</b></para>
          </td>
          <td>
            <para style="terp_tblheader_General_Centre"><b>Taxes</b></para>
          </td>
          <td>
            <para style="terp_tblheader_General_Right"><b>Quantity</b></para>
          </td>
          <td>
            <para style="terp_tblheader_General_Right"><b>Unit Price</b></para>
          </td>
          <td>
            <para style="terp_tblheader_General_Right"><b>Disc.(%)</b></para>
          </td>
          <td>
            <para style="terp_tblheader_General_Right"><b>Price</b></para>
          </td>
        </tr>
      </blockTable>

  Notice how the colWidths param of the blockTable element
         and the style param of the para element
  are different.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1277613/+subscriptions


Follow ups

References