2
<?mso-application progid="Excel.Sheet"?>
3
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
4
xmlns:o="urn:schemas-microsoft-com:office:office"
5
xmlns:x="urn:schemas-microsoft-com:office:excel"
6
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
7
xmlns:html="http://www.w3.org/TR/REC-html40">
8
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
9
<Author>MSFUser</Author>
10
<LastAuthor>MSFUser</LastAuthor>
11
<Created>2012-06-18T15:46:09Z</Created>
12
<Company>Medecins Sans Frontieres</Company>
13
<Version>11.9999</Version>
15
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
16
<WindowHeight>13170</WindowHeight>
17
<WindowWidth>19020</WindowWidth>
18
<WindowTopX>120</WindowTopX>
19
<WindowTopY>60</WindowTopY>
20
<ProtectStructure>False</ProtectStructure>
21
<ProtectWindows>False</ProtectWindows>
24
<Style ss:ID="header">
25
<Alignment ss:Horizontal="Center" ss:Vertical="Center" ss:WrapText="1"/>
26
<Interior ss:Color="#ffcc99" ss:Pattern="Solid"/>
28
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
29
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
30
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
31
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
35
<Alignment ss:Horizontal="Center" ss:Vertical="Center" ss:WrapText="1"/>
37
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
38
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
39
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
40
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
44
## we loop over the sale_order so "objects" == sale_order
46
## we loop over the sale_order_line
47
<ss:Worksheet ss:Name="Internal Request">
48
## definition of the columns' size
49
<% nb_of_columns = 6 %>
50
<Table x:FullColumns="1" x:FullRows="1">
51
<Column ss:AutoFitWidth="1" ss:Width="120" />
52
<Column ss:AutoFitWidth="1" ss:Width="320" />
53
% for x in range(2,nb_of_columns - 1):
54
<Column ss:AutoFitWidth="1" ss:Width="70" />
56
<Column ss:AutoFitWidth="1" ss:Width="250" />
58
<Cell ss:StyleID="header" ><Data ss:Type="String">Product Code</Data></Cell>
59
<Cell ss:StyleID="header" ><Data ss:Type="String">Product Description</Data></Cell>
60
<Cell ss:StyleID="header" ><Data ss:Type="String">Quantity</Data></Cell>
61
<Cell ss:StyleID="header" ><Data ss:Type="String">UoM</Data></Cell>
62
<Cell ss:StyleID="header" ><Data ss:Type="String">Currency</Data></Cell>
63
<Cell ss:StyleID="header" ><Data ss:Type="String">Comment</Data></Cell>
65
% for line in o.order_line:
67
<Cell ss:StyleID="line" ><Data ss:Type="String">${(line.product_id.default_code or '')|x}</Data></Cell>
68
<Cell ss:StyleID="line" ><Data ss:Type="String">${(line.product_id.name or '')|x}</Data></Cell>
69
<Cell ss:StyleID="line" ><Data ss:Type="Number">${(line.product_uom_qty or '')|x}</Data></Cell>
70
<Cell ss:StyleID="line" ><Data ss:Type="String">${(line.product_uom.name or '')|x}</Data></Cell>
71
<Cell ss:StyleID="line" ><Data ss:Type="String">${(line.functional_currency_id.name or '')|x}</Data></Cell>
72
<Cell ss:StyleID="line" ><Data ss:Type="String">${(line.comment or '')|x}</Data></Cell>
77
<x:WorksheetOptions/></ss:Worksheet></Workbook>
b'\\ No newline at end of file'