~camptocamp/hr-timesheet/6.1-hr_timesheet_print-wrong_dependency

« back to all changes in this revision

Viewing changes to hr_timesheet_print/report/timesheet_report.rml

  • Committer: Guewen Baconnier @ Camptocamp
  • Date: 2012-12-12 10:35:35 UTC
  • mfrom: (37.1.7 7.0-hr_timesheet_print-migr)
  • Revision ID: guewen.baconnier@camptocamp.com-20121212103535-p2tj81j6ntdqve6r
[IMP] backport the changes done for the 7.0 migration

Most of the changes are styling issues.
Corrected a wrong copyright attribution and changed the license to AGPLv3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0"?>
2
2
<document filename="test.pdf">
3
 
  <template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
 
3
  <template pageSize="(595.0,842.0)" title="Timesheet Report" author="" allowSplitting="20">
4
4
    <pageTemplate id="first">
5
5
      <frame id="first" x1="35.0" y1="35.0" width="525" height="772"/>
6
 
        <pageGraphics>
7
 
               <setFont name="Helvetica-Bold" size="9"/>
8
 
 
9
 
               <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
10
 
               <drawString x="17.7cm" y="28.1cm">Maintenance And Support Summary</drawString>
11
 
 
12
 
               <setFont name="Helvetica" size="9"/>
13
 
               <drawString x="1.0cm" y="2cm"> [[ time.strftime("%m-%d-%y %H:%M", time.localtime()) ]]</drawString>
14
 
               <drawString x="17.7cm" y="2cm">Page <pageNumber/></drawString>
15
 
 
16
 
               <lineMode width="0.7"/>
17
 
               <lines>0.6cm 27.9cm 20.3cm 27.9cm</lines>
18
 
               <setFont name="Helvetica" size="8"/>
19
 
             </pageGraphics>   
 
6
      <pageGraphics>
 
7
        <setFont name="Helvetica-Bold" size="9"/>
 
8
 
 
9
        <drawString x="1.0cm" y="28.1cm">[[ company.name ]]</drawString>
 
10
        <drawString x="17.7cm" y="28.1cm">Maintenance And Support Summary</drawString>
 
11
 
 
12
        <setFont name="Helvetica" size="9"/>
 
13
        <drawString x="1.0cm" y="2cm"> [[ time.strftime("%m-%d-%y %H:%M", time.localtime()) ]]</drawString>
 
14
        <drawString x="17.7cm" y="2cm">Page <pageNumber/></drawString>
 
15
 
 
16
        <lineMode width="0.7"/>
 
17
        <lines>0.6cm 27.9cm 20.3cm 27.9cm</lines>
 
18
        <setFont name="Helvetica" size="8"/>
 
19
      </pageGraphics>
20
20
 
21
21
    </pageTemplate>
22
22
  </template>
26
26
      <blockValign value="TOP"/>
27
27
    </blockTableStyle>
28
28
    <blockTableStyle id="Table1">
29
 
        <lineStyle kind="LINEBELOW" colorName="#ffffff" start="0,0" stop="-1,-1"/>
 
29
      <lineStyle kind="LINEBELOW" colorName="#ffffff" start="0,0" stop="-1,-1"/>
30
30
      <blockAlignment value="LEFT"/>
31
31
      <blockValign value="TOP"/>
32
32
      <blockBackground colorName="#e6e6e6" start="0,0" stop="0,-1"/>
35
35
      <blockBackground colorName="#e6e6e6" start="0,1" stop="0,-1"/>
36
36
      <blockBackground colorName="#e6e6e6" start="1,1" stop="1,-1"/>
37
37
      <blockBackground colorName="#e6e6e6" start="2,1" stop="2,-1"/>
38
 
      
 
38
 
39
39
    </blockTableStyle>
40
40
    <blockTableStyle id="Table6">
41
41
      <blockAlignment value="LEFT"/>
57
57
    <blockTableStyle id="Table2">
58
58
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
59
59
      <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,1" stop="-1,-1"/>
60
 
      
 
60
 
61
61
      <blockValign value="TOP"/>
62
62
      <blockAlignment value="RIGHT" start="2,1" stop="-1,-1"/>
63
63
    </blockTableStyle>
85
85
    <blockTableStyle id="Table7">
86
86
      <lineStyle kind="LINEBELOW" colorName="#000000" start="0,0" stop="-1,0"/>
87
87
    </blockTableStyle>
88
 
  
 
88
 
89
89
    <initialize>
90
90
      <paraStyle name="all" alignment="justify"/>
91
91
    </initialize>
94
94
    <paraStyle name="P2c" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
95
95
    <paraStyle name="P3" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
96
96
    <paraStyle name="P10" fontName="Helvetica" fontSize="8.0" leading="14" spaceBefore="0.0" spaceAfter="6.0" alignment="RIGHT"/>
97
 
   <paraStyle name="P9" fontName="Helvetica-Bold" alignment="CENTER" fontSize="14.5" leftIndent="-5.0"/>
 
97
    <paraStyle name="P9" fontName="Helvetica-Bold" alignment="CENTER" fontSize="14.5" leftIndent="-5.0"/>
98
98
    <paraStyle name="P9b" fontName="Helvetica" fontSize="8"  alignment="LEFT"/>
99
99
    <paraStyle name="P9c" fontName="Helvetica" fontSize="8"  alignment="RIGHT"/>
100
100
    <paraStyle name="P12" fontName="Helvetica" fontSize="8.0" leading="14" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
130
130
    </blockTableStyle>
131
131
 
132
132
    <paraStyle
133
 
        name="Level5" 
134
 
        fontName="Helvetica"
135
 
        fontSize="8.0" />
136
 
    <paraStyle
137
 
        name="Level4" 
138
 
        fontName="Helvetica" 
139
 
        fontSize="8.0" />
140
 
    <paraStyle
141
 
        name="Level3" 
142
 
        fontName="Helvetica" 
143
 
        fontSize="8.0" />
144
 
    <paraStyle
145
 
        name="Level2" 
146
 
        firstLineIndent="-0.03cm"
147
 
        fontName="Helvetica-Bold" 
148
 
        fontSize="8.0" />
 
133
      name="Level5" 
 
134
      fontName="Helvetica"
 
135
      fontSize="8.0" />
 
136
    <paraStyle
 
137
      name="Level4" 
 
138
      fontName="Helvetica" 
 
139
      fontSize="8.0" />
 
140
    <paraStyle
 
141
      name="Level3" 
 
142
      fontName="Helvetica" 
 
143
      fontSize="8.0" />
 
144
    <paraStyle
 
145
      name="Level2" 
 
146
      firstLineIndent="-0.03cm"
 
147
      fontName="Helvetica-Bold" 
 
148
      fontSize="8.0" />
149
149
    <paraStyle name="Level1"
150
 
        fontSize="8.0"
151
 
        fontName="Helvetica-Bold" 
152
 
        />
 
150
      fontSize="8.0"
 
151
      fontName="Helvetica-Bold" 
 
152
      />
153
153
    <paraStyle name="Caption" fontName="Helvetica" fontSize="10.0" leading="13" spaceBefore="6.0" spaceAfter="6.0"/>
154
154
    <paraStyle name="Index" fontName="Helvetica"/>
155
155
  </stylesheet>
156
156
  <images/>
157
157
  <story>
158
158
 
159
 
   <para style="P2">[[ objects and objects[0] and setLang(objects[0].account_id.partner_id.lang) ]]</para>
160
 
   <para style="P1">Spent hours details</para>
161
 
 
 
159
    <para style="P2">[[ objects and objects[0] and setLang(objects[0].account_id.partner_id.lang) ]]</para>
 
160
    <para style="P1">Spent hours details</para>
 
161
 
162
162
    <para style="P12a"></para>
163
163
    <para style="P12a"></para>
164
164
    <blockTable colWidths="258.0,259.0" style="Table1" repeatRows="1">
165
 
        <tr>
166
 
            <td>
167
 
              <para style="P12a">Report Date : </para>
168
 
            </td>
169
 
            <td>
170
 
              <para style="P2">[[ time.strftime("%d.%m.%Y", time.localtime()) ]]</para>
171
 
            </td>
172
 
        </tr>
173
 
        <tr>
174
 
            <td>
175
 
              <!-- <para style="P12a">[[ o.type == 'hours' and "Quantity of hours" or "Amount"]] used : </para> -->
176
 
              <para style="P12a">Total hours : </para>
177
 
            </td>
178
 
            <td>
179
 
              <para style="P2">[[ round(tot_hours['total'],2) ]]</para>
180
 
            </td>
181
 
        </tr>
182
 
        <tr>
183
 
            <td>
184
 
              <!-- <para style="P12a">[[ o.type == 'hours' and "Quantity of hours" or "Amount"]] used : </para> -->
185
 
              <para style="P12a">Invoiced hours : </para>
186
 
            </td>
187
 
            <td>
188
 
              <para style="P2">[[ round(tot_hours['deduced'],2) or '0.0' ]]</para>
189
 
            </td>
190
 
        </tr>
 
165
      <tr>
 
166
        <td>
 
167
          <para style="P12a">Report Date: </para>
 
168
        </td>
 
169
        <td>
 
170
          <para style="P2">[[ time.strftime("%d.%m.%Y", time.localtime()) ]]</para>
 
171
        </td>
 
172
      </tr>
 
173
      <tr>
 
174
        <td>
 
175
          <para style="P12a">Total hours: </para>
 
176
        </td>
 
177
        <td>
 
178
          <para style="P2">[[ round(tot_hours['total'],2) ]]</para>
 
179
        </td>
 
180
      </tr>
 
181
      <tr>
 
182
        <td>
 
183
          <para style="P12a">Invoiced hours: </para>
 
184
        </td>
 
185
        <td>
 
186
          <para style="P2">[[ round(tot_hours['deduced'], 2) or '0.0' ]]</para>
 
187
        </td>
 
188
      </tr>
191
189
    </blockTable>
192
190
    <para style="P12a"></para>
193
191
    <para style="P12a"></para>
210
208
          <para style="P12a">Deduced</para>
211
209
        </td>
212
210
      </tr>
213
 
      
214
 
       <tr>
215
 
           [[ repeatIn(objects,'l') ]]
216
 
         <td>
217
 
           <para style="P2">[[ l.date and format_date(l.date) or '' ]]</para>
218
 
         </td>
219
 
         <td>
220
 
           <para style="P2">[[ l.name or '' ]]</para>
221
 
         </td>
222
 
         <td>
223
 
           <para style="P2c">[[ round(l.to_invoice.factor &gt;= 0.0 and l.unit_amount or l.to_invoice.factor &lt;= -0.01 and l.unit_amount and ((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or '0.0') or '0.0',2) ]]</para>
224
 
         </td>
225
 
         <td>
226
 
           <para style="P2c">[[ l.to_invoice.factor &gt;= 0.0 and l.to_invoice.customer_name or l.to_invoice.factor &lt;= -0.01 and '100%' ]]</para>
227
 
         </td>
228
 
         <td>
229
 
           <para style="P2c">[[ round((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or '0.0', 2) ]]</para>
230
 
         </td>
231
 
       </tr>
 
211
 
 
212
      <tr>
 
213
        [[ repeatIn(objects, 'l') ]]
 
214
        <td>
 
215
          <para style="P2">[[ l.date and format_date(l.date) or '' ]]</para>
 
216
        </td>
 
217
        <td>
 
218
          <para style="P2">[[ l.name or '' ]]</para>
 
219
        </td>
 
220
        <td>
 
221
          <para style="P2c">[[ round(l.to_invoice.factor &gt;= 0.0 and l.unit_amount or l.to_invoice.factor &lt;= -0.01 and l.unit_amount and ((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or 0.0), 2) or '0.0' ]]</para>
 
222
        </td>
 
223
        <td>
 
224
          <para style="P2c">[[ l.to_invoice.factor &gt;= 0.0 and l.to_invoice.customer_name or l.to_invoice.factor &lt;= -0.01 and '100%' ]]</para>
 
225
        </td>
 
226
        <td>
 
227
          <para style="P2c">[[ round((l.unit_amount and l.to_invoice) and (l.unit_amount - (l.unit_amount * l.to_invoice.factor) / 100 ) or 0.0, 2) or '0.0' ]]</para>
 
228
        </td>
 
229
      </tr>
232
230
    </blockTable>
233
231
 
234
232
  </story>