[FIX]: mrp: Fixed layout of product cost structure report
authorRucha (Open ERP) <rpa@tinyerp.com>
Tue, 30 Aug 2011 11:26:55 +0000 (16:56 +0530)
committerRucha (Open ERP) <rpa@tinyerp.com>
Tue, 30 Aug 2011 11:26:55 +0000 (16:56 +0530)
lp bug: https://launchpad.net/bugs/834024 fixed

bzr revid: rpa@tinyerp.com-20110830112655-w3sw70mt7gjybscj

addons/mrp/report/custom_default.xsl
addons/mrp/report/price.xsl

index aa5eb22..d98cd94 100644 (file)
@@ -39,7 +39,7 @@
 
        <xsl:template name="first_page_frames">
                <xsl:if test="$page_format='a4_normal'">
-                       <frame id="main" x1="1cm" y1="2.5cm" width="21.0cm" height="29.0cm"/>
+                       <frame id="main" x1="1cm" y1="2.5cm" width="19.0cm" height="25.0cm"/>
                </xsl:if>
 
                <xsl:if test="$page_format='a4_letter'">
@@ -49,7 +49,7 @@
        </xsl:template>
 
        <xsl:template name="other_pages_frames">
-               <frame id="main" x1="1cm" y1="2.5cm" width="21.0cm" height="29cm"/>
+               <frame id="main" x1="1cm" y1="2.5cm" width="19.0cm" height="25.0cm"/>
        </xsl:template>
 
 </xsl:stylesheet>
index edf98a0..5d00cb5 100644 (file)
@@ -3,6 +3,8 @@
 
        <xsl:import href="custom_default.xsl"/>
        <xsl:import href="custom_rml.xsl"/>
+       <xsl:variable name="page_format">a4_normal</xsl:variable>
+
 
        <xsl:template match="/">
                <xsl:call-template name="rml"/>
@@ -11,7 +13,7 @@
        <!-- stylesheet -->
 
        <xsl:template name="stylesheet">
-               <paraStyle name="title" fontName="Helvetica-Bold" fontSize="15.0" leftIndent="-8.0cm" alignment="center"/>
+               <paraStyle name="title" fontName="Helvetica-Bold" fontSize="15.0" alignment="center"/>
                <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT"/>
                <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
                <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>