~toolpart/openobject-server/toolpart

« back to all changes in this revision

Viewing changes to bin/addons/base/module/report/ir_module_reference.rml

  • Committer: pinky
  • Date: 2006-12-07 13:41:40 UTC
  • Revision ID: pinky-3f10ee12cea3c4c75cef44ab04ad33ef47432907
New trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<document filename="test.pdf">
 
3
  <template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
 
4
    <pageTemplate id="first">
 
5
      <frame id="first" x1="42.0" y1="42.0" width="511" height="758"/>
 
6
    </pageTemplate>
 
7
  </template>
 
8
  <stylesheet>
 
9
    <blockTableStyle id="Standard_Outline">
 
10
      <blockAlignment value="LEFT"/>
 
11
      <blockValign value="TOP"/>
 
12
    </blockTableStyle>
 
13
    <blockTableStyle id="Table1">
 
14
      <blockAlignment value="LEFT"/>
 
15
      <blockValign value="TOP"/>
 
16
      <blockBackground colorName="#e6e6e6" start="0,0" stop="0,0"/>
 
17
      <blockBackground colorName="#e6e6e6" start="1,0" stop="1,0"/>
 
18
      <blockBackground colorName="#e6e6e6" start="2,0" stop="2,0"/>
 
19
      <blockBackground colorName="#e6e6e6" start="0,1" stop="0,1"/>
 
20
      <blockBackground colorName="#e6e6e6" start="1,1" stop="1,1"/>
 
21
      <blockBackground colorName="#e6e6e6" start="2,1" stop="2,1"/>
 
22
    </blockTableStyle>
 
23
    <blockTableStyle id="Tableau1">
 
24
      <blockAlignment value="LEFT"/>
 
25
      <blockValign value="TOP"/>
 
26
      <lineStyle kind="GRID" colorName="black"/>
 
27
      <blockBackground colorName="#ff6633" start="0,0" stop="0,0"/>
 
28
    </blockTableStyle>
 
29
    <blockTableStyle id="Tableau2">
 
30
      <blockAlignment value="LEFT"/>
 
31
      <blockValign value="TOP"/>
 
32
      <blockBackground colorName="#e6e6e6" start="0,0" stop="0,0"/>
 
33
      <blockBackground colorName="#e6e6e6" start="1,0" stop="1,0"/>
 
34
      <blockBackground colorName="#e6e6e6" start="0,1" stop="0,1"/>
 
35
      <blockBackground colorName="#e6e6e6" start="1,1" stop="1,1"/>
 
36
    </blockTableStyle>
 
37
    <blockTableStyle id="Tableau3">
 
38
      <blockAlignment value="LEFT"/>
 
39
      <blockValign value="TOP"/>
 
40
      <lineStyle kind="GRID" colorName="black"/>
 
41
      <blockBackground colorName="#ffcc99" start="0,0" stop="0,0"/>
 
42
    </blockTableStyle>
 
43
    <blockTableStyle id="Tableau4">
 
44
      <blockAlignment value="LEFT"/>
 
45
      <blockValign value="TOP"/>
 
46
    </blockTableStyle>
 
47
    <initialize>
 
48
      <paraStyle name="all" alignment="justify"/>
 
49
    </initialize>
 
50
    <paraStyle name="P1" fontName="Times-Roman" fontSize="20.0" leading="25" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
51
    <paraStyle name="P2" fontName="Times-Roman" fontSize="10.0" leading="13" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
52
    <paraStyle name="P3" fontName="Times-Roman" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
53
    <paraStyle name="P4" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"/>
 
54
    <paraStyle name="P5" fontName="Times-Roman" fontSize="16.0" leading="20" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
55
    <paraStyle name="P6" fontName="Times-Roman"/>
 
56
    <paraStyle name="P7" fontName="Times-Roman" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
57
    <paraStyle name="P8" fontName="Times-Roman" fontSize="11.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
 
58
    <paraStyle name="P9" fontName="Times-Roman" alignment="LEFT" spaceBefore="0.0" spaceAfter="6.0"/>
 
59
    <paraStyle name="Standard" fontName="Times-Roman"/>
 
60
    <paraStyle name="Text body" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
61
    <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
 
62
    <paraStyle name="List" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
63
    <paraStyle name="Table Contents" fontName="Times-Roman" spaceBefore="0.0" spaceAfter="6.0"/>
 
64
    <paraStyle name="Table Heading" fontName="Times-Roman" alignment="CENTER" spaceBefore="0.0" spaceAfter="6.0"/>
 
65
    <paraStyle name="Caption" fontName="Times-Roman" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
 
66
    <paraStyle name="Index" fontName="Times-Roman"/>
 
67
  </stylesheet>
 
68
  <story>
 
69
    <para style="Standard">
 
70
      <font color="white"> </font>
 
71
    </para>
 
72
    <blockTable colWidths="139.0,220.0,152.0" repeatRows="1" style="Table1">
 
73
      <tr>
 
74
        <td>
 
75
          <para style="Table Contents">
 
76
            <font color="white"> </font>
 
77
          </para>
 
78
        </td>
 
79
        <td>
 
80
          <para style="P1">Reference Guide</para>
 
81
        </td>
 
82
        <td>
 
83
          <para style="P2">
 
84
            <font color="white"> </font>
 
85
          </para>
 
86
        </td>
 
87
      </tr>
 
88
      <tr>
 
89
        <td>
 
90
          <para style="Table Contents">[[ company.name ]]</para>
 
91
        </td>
 
92
        <td>
 
93
          <para style="P3">Introspection report on objects</para>
 
94
        </td>
 
95
        <td>
 
96
          <para style="P4">Printed: [[ time.strftime('%y-%m-%d')]]</para>
 
97
        </td>
 
98
      </tr>
 
99
    </blockTable>
 
100
    <para style="Standard">
 
101
      <font color="white"> </font>
 
102
    </para>
 
103
    <section>
 
104
      <para style="Text body">[[ repeatIn(objects, 'module') ]]</para>
 
105
      <blockTable colWidths="510.0" repeatRows="1" style="Tableau1">
 
106
        <tr>
 
107
          <td>
 
108
            <para style="P5">Module: [[ module.name ]]</para>
 
109
          </td>
 
110
        </tr>
 
111
      </blockTable>
 
112
      <blockTable colWidths="276.0,234.0" repeatRows="1" style="Tableau2">
 
113
        <tr>
 
114
          <td>
 
115
            <para style="Standard">Name: [[ module.shortdesc]]</para>
 
116
          </td>
 
117
          <td>
 
118
            <para style="Standard">Version: [[module.latest_version]]</para>
 
119
          </td>
 
120
        </tr>
 
121
        <tr>
 
122
          <td>
 
123
            <para style="Standard">Directory: [[ module.name ]]</para>
 
124
          </td>
 
125
          <td>
 
126
            <para style="Standard">Web: [[ module.website ]]</para>
 
127
          </td>
 
128
        </tr>
 
129
      </blockTable>
 
130
      <para style="P6">[[ module.description ]]</para>
 
131
      <section>
 
132
        <para style="Standard">[[ repeatIn(findobj(module.name) ,'object') ]]</para>
 
133
        <blockTable colWidths="510.0" repeatRows="1" style="Tableau3">
 
134
          <tr>
 
135
            <td>
 
136
              <para style="P7">Object: [[ object.name ]]</para>
 
137
              <pre style="P8">[[ objdoc(object.model) ]]</pre>
 
138
            </td>
 
139
          </tr>
 
140
        </blockTable>
 
141
        <blockTable colWidths="113.0,397.0" repeatRows="1" style="Tableau4">
 
142
          <tr>
 
143
            <td>
 
144
              <para style="P9"><font face="Times-Roman">[[ repeatIn(findflds(object.model), 'field') ]]</font> [[ field[0] ]]</para>
 
145
            </td>
 
146
            <td>
 
147
              <para style="Standard">
 
148
                <font face="Times-Roman">[[ field[1].get('string', 'Unknown') ]], [[ field[1]['type'] ]] [[field[1].get('required',False) and ', required']] [[field[1].get('readonly',False) and ', readonly']] </font>
 
149
              </para>
 
150
              <para style="Standard">[[ field[1].get('help', '') ]]</para>
 
151
            </td>
 
152
          </tr>
 
153
        </blockTable>
 
154
        <para style="Standard">
 
155
          <font color="white"> </font>
 
156
        </para>
 
157
      </section>
 
158
      <para style="Standard">
 
159
        <font color="white"> </font>
 
160
      </para>
 
161
      <para style="Standard">
 
162
        <font color="white"> </font>
 
163
      </para>
 
164
      <para style="Standard">
 
165
        <font color="white"> </font>
 
166
      </para>
 
167
    </section>
 
168
    <para style="Standard">
 
169
      <font color="white"> </font>
 
170
    </para>
 
171
  </story>
 
172
</document>
 
173