[FIX] website_sale_stock: Don't display internal transfer on 'My account' portal

And on the other hand, use the correct report.
This commit is contained in:
jpr-odoo
2016-09-07 11:20:12 +02:00
committed by Yannick Tivisse
parent 4e7ce5a2d0
commit a155eafca4
@@ -7,8 +7,8 @@
<strong>Delivery Orders</strong>
</div>
<div>
<t t-foreach="order.picking_ids" t-as="i">
<t t-set="report_url" t-value="'/report/pdf/stock.report_picking/%s' % i.id"/>
<t t-foreach="order.picking_ids.filtered(lambda picking: picking.picking_type_id.code != 'internal')" t-as="i">
<t t-set="report_url" t-value="'/report/pdf/stock.report_deliveryslip/%s' % i.id"/>
<div id='picking_info'>
<a t-att-href="report_url"><span class="fa fa-download"/></a>
<a t-att-href="report_url"><span t-field="i.name"/></a>
@@ -31,4 +31,5 @@
</t>
</xpath>
</template>
</odoo>
</odoo>