mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
43 lines
1.2 KiB
Mako
43 lines
1.2 KiB
Mako
## -*- coding: utf-8 -*-
|
|
<html>
|
|
<head>
|
|
<style type="text/css">
|
|
${css}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<%from datetime import date %>
|
|
${_('Date')}: ${formatLang(str(date.today()), date=True)}
|
|
${_('Done by')}: ${user.name} ${_('Visa')}:_________________
|
|
<br/>
|
|
<br/>
|
|
<b>${_('Company')}: ${user.company_id.name}<b>
|
|
<br/>
|
|
<br/>
|
|
%for aggr in objects:
|
|
<table style="border:solid 1px" width="100%">
|
|
<caption><b><u>${aggr.src_stock.name} => ${aggr.dest_stock.name}</u></b></caption>
|
|
<tr align="left">
|
|
<th>${_('Product Code')}</th>
|
|
<th>${_('Delivery Order')}</th>
|
|
<th>${_('Product')}</th>
|
|
<th>${_('Qty')}</th>
|
|
<th>${_('Origin')}</th>
|
|
<th>${_('Carrier')}</th>
|
|
</tr>
|
|
%for move in aggr.moves_by_product():
|
|
<tr align="left">
|
|
<td>${move.product_id.default_code}</td>
|
|
<td>${move.picking_id.name}</td>
|
|
<td>${move.product_id.name}</td>
|
|
<td>${formatLang(move.product_qty)}</td>
|
|
<td>${move.picking_id.origin}</td>
|
|
<td>${move.picking_id.carrier_id and move.picking_id.carrier_id.partner_id.name or ''}</td>
|
|
</tr>
|
|
%endfor
|
|
</table>
|
|
<br/>
|
|
%endfor
|
|
</body>
|
|
</html>
|
|
|