[IMP] FormView: use name_get for the form title
[odoo/odoo.git] / addons / mrp / report / custom_default.xsl
1 <?xml version = '1.0' encoding="utf-8"?>
2
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
4         <xsl:variable name="signature" select="//corporate-header/user/signature"/>
5         <xsl:variable name="title">Open ERP Report</xsl:variable>
6         <xsl:variable name="leftMargin">1cm</xsl:variable>
7         <xsl:variable name="rightMargin">1cm</xsl:variable>
8         <xsl:variable name="topMargin">1cm</xsl:variable>
9         <xsl:variable name="bottomMargin">1cm</xsl:variable>
10         <xsl:variable name="pageSize">21cm,29.7cm</xsl:variable>
11
12         <xsl:variable name="page_format">a4_letter</xsl:variable>
13
14         <xsl:template name="first_page_graphics_corporation">
15                 <!--logo-->
16                 <fill color="black"/>
17         <stroke color="black"/>
18         <setFont name="DejaVu Sans" size="8"/>
19         <drawString x="1.3cm" y="28.3cm"><xsl:value-of select="//date"/></drawString>
20         <setFont name="DejaVu Sans Bold" size="10"/>
21         <drawString x="9.8cm" y="28.3cm"><xsl:value-of select="//company"/></drawString>
22         <stroke color="#000000"/>
23         <lines>1.3cm 28.1cm 20cm 28.1cm</lines>
24
25         </xsl:template>
26
27
28         <xsl:template name="other_pages_graphics_corporation">
29                 <!--logo-->
30                 <fill color="black"/>
31         <stroke color="black"/>
32         <setFont name="DejaVu Sans" size="8"/>
33         <drawString x="1.3cm" y="28.3cm"><xsl:value-of select="//date"/></drawString>
34         <setFont name="DejaVu Sans Bold" size="10"/>
35         <drawString x="9.8cm" y="28.3cm"><xsl:value-of select="//company"/></drawString>
36         <stroke color="#000000"/>
37         <lines>1.3cm 28.1cm 20cm 28.1cm</lines>
38  </xsl:template>
39
40         <xsl:template name="first_page_frames">
41                 <xsl:if test="$page_format='a4_normal'">
42                         <frame id="main" x1="1cm" y1="2.5cm" width="19.0cm" height="25.0cm"/>
43                 </xsl:if>
44
45                 <xsl:if test="$page_format='a4_letter'">
46                         <frame id="address" x1="11cm" y1="21.5cm" width="6cm" height="4cm"/>
47                         <frame id="main" x1="1cm" y1="2.5cm" width="19.0cm" height="17.5cm"/>
48                 </xsl:if>
49         </xsl:template>
50
51         <xsl:template name="other_pages_frames">
52                 <frame id="main" x1="1cm" y1="2.5cm" width="19.0cm" height="25.0cm"/>
53         </xsl:template>
54
55 </xsl:stylesheet>