~camptocamp/stock-logistic-report/7.0-replace-print-actions-mdh

« back to all changes in this revision

Viewing changes to stock_picking_webkit/report/picking.html.mako

  • Committer: Joël Grand-Guillaume
  • Date: 2012-07-12 13:56:17 UTC
  • Revision ID: joel.grandguillaume@camptocamp.com-20120712135617-9d5paaps97npp8t5
[MRG] From trunk branch, tests and bugfix. Most improvements are on:
  - Margin modules
  - picking dispatch (better warehouse handling))
  - grouping PO
  - Filter on stock delivers from sales
(lp:c2c-addons/6.1  rev 69)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<style type="text/css">
 
4
${css}
 
5
</style>
 
6
</head>
 
7
<body>
 
8
<%from datetime import date %>
 
9
${_('Date')}: ${formatLang(str(date.today()), date=True)}  &nbsp;
 
10
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ${_('Done by')}: ${user.name}  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;${_('Visa')}:_________________
 
11
<br/>
 
12
<br/>
 
13
<b>${_('Company')}: ${user.company_id.name}<b>
 
14
<br/>
 
15
<br/>
 
16
%for aggr in objects:
 
17
<table style="border:solid 1px" width="100%">
 
18
  <caption><b><u>${aggr.src_stock.name} => ${aggr.dest_stock.name}</u></b></caption>
 
19
  <tr align="left">
 
20
    <th>${_('Product Code')}</th>
 
21
    <th>${_('Picking')}</th>
 
22
    <th>${_('Product')}</th>
 
23
    <th>${_('QTY')}</th>
 
24
    <th>${_('origin')}</th>
 
25
    <th>${_('Carrier')}</th>
 
26
  </tr>
 
27
  %for move in aggr.moves_by_product():
 
28
  <tr align="left">
 
29
    <td>${move.product_id.default_code}</td>
 
30
    <td>${move.picking_id.name}</td>
 
31
    <td>${move.product_id.name}</td>
 
32
    <td>${formatLang(move.product_qty)}</td>
 
33
    <td>${move.picking_id.origin}</td>
 
34
    <td>${move.picking_id.carrier_id and move.picking_id.carrier_id.partner_id.name or ''}</td>
 
35
  </tr>
 
36
  %endfor
 
37
</table>
 
38
<br/>
 
39
%endfor
 
40
</body>
 
41
</html>