[IMP] made pager disappear in form view when in create mode
[odoo/odoo.git] / addons / project / report / project_report.xsl
1 <?xml version="1.0" encoding="utf-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
3     <xsl:template match="/">
4         <xsl:apply-templates select="projects"/>
5     </xsl:template>
6
7     <xsl:template match="projects">
8         <document xmlns:fo="http://www.w3.org/1999/XSL/Format">
9             <template leftMargin="2.0cm" rightMargin="2.0cm" topMargin="2.0cm" bottomMargin="2.0cm" title="Project" author="Generated by OpenERP.com" allowSplitting="20">
10                 <pageTemplate id="all">
11                     <pageGraphics/>
12                     <frame id="list" x1="1.0cm" y1="2.0cm" width="19.0cm" height="27cm"/>
13                 </pageTemplate>
14             </template>
15
16             <stylesheet>
17                 <paraStyle name="title" fontName="Helvetica-Bold" fontSize="18" alignment="center"/>
18                 <paraStyle name="notes" fontName="Helvetica" fontSize="8" alignment="justify"/>
19                 <blockTableStyle id="project">
20                     <blockFont name="Helvetica-Bold" size="10" start="0,0" stop="0,-1"/>
21                     <blockFont name="Helvetica-Bold" size="10" start="2,0" stop="2,-1"/>
22                      <blockValign value="TOP"/>
23                 </blockTableStyle>
24                 <blockTableStyle id="tasks">
25                     <blockValign value="TOP"/>
26                     <blockAlignment value="LEFT"/>
27                     <blockFont name="Helvetica-Bold" size="10" start="0,0" stop="-1,0"/>
28                     <lineStyle kind="LINEABOVE" thickness="0.5" colorName="black" start="0,0" stop="-1,0"/>
29                     <lineStyle kind="LINEBELOW" thickness="0.5" colorName="black" start="0,0" stop="-1,0"/>
30                     <blockBackground colorName="(0.72,0.72,0.72)" start="0,0" stop="-1,0"/>
31                      <blockValign value="TOP"/>
32                      <blockAlignment value="CENTER" start="1,0" stop="-1,-1"/>
33                 </blockTableStyle>
34             </stylesheet>
35
36             <story>
37                 <xsl:apply-templates select="project"/>
38             </story>
39         </document>
40     </xsl:template>
41
42     <xsl:template match="members">
43         <xsl:value-of select="member_name"/> (<i><xsl:value-of select="member_login"/></i>),
44     </xsl:template>
45
46     <xsl:template match="task">
47         <tr>
48             <td>
49                 <para><xsl:value-of select="task_name"/></para>
50                     <para style="notes"><xsl:value-of select="task_description"/></para>
51             </td>
52             <td><xsl:value-of select="task_planned_hours"/></td>
53             <td><xsl:value-of select="task_effective_hours"/></td>
54             <td><xsl:value-of select="task_deadline"/></td>
55             <td><xsl:value-of select="task_user_id"/></td>
56         </tr>
57     </xsl:template>
58
59     <xsl:template match="tasks">
60         <blockTable style="tasks" colWidths="10cm,1.6cm,1.6cm,2cm,2.5cm">
61         <tr>
62             <td t="True">Tasks</td>
63             <td t="True">Hours</td>
64             <td t="True">Done</td>
65             <td t="True">Deadline</td>
66             <td t="True">Responsible</td>
67         </tr>
68         <xsl:apply-templates select="task"/>
69         </blockTable>
70     </xsl:template>
71
72     <xsl:template match="project">
73         <para style="title">
74             <xsl:value-of select="name"/>
75         </para>
76         <spacer length="1cm"/>
77         <blockTable colWidths="3cm,6cm,3cm,6cm" style="project">
78         <tr>
79             <td t="True">Manager:</td>
80             <td><para><b><xsl:value-of select="manager"/></b></para></td>
81             <td t="True">Members:</td>
82             <td><para><xsl:apply-templates select="members"/></para></td>
83         </tr><tr>
84             <td t="True">Project:</td>
85             <td><xsl:value-of select="parent"/></td>
86             <td></td>
87             <td></td>
88         </tr><tr>
89             <td t="True">Date Start:</td>
90             <td><xsl:value-of select="date_start"/></td>
91             <td t="True">Date Stop:</td>
92             <td><xsl:value-of select="date_stop"/></td>
93         </tr><tr>
94             <td t="True">Planned Hours:</td>
95             <td><xsl:value-of select="planned_hours"/></td>
96             <td t="True">Effective Hours:</td>
97             <td><xsl:value-of select="effective_hours"/></td>
98         </tr>
99         </blockTable>
100         <spacer length="0.3cm"/>
101         <pre>
102             <xsl:value-of select="notes"/>
103         </pre>
104         <spacer length="0.7cm"/>
105         <xsl:apply-templates select="tasks"/>
106         <pageBreak/>
107     </xsl:template>
108 </xsl:stylesheet>