Skip to content
Permalink
Browse files

[FIX] sale_stock: only customers' delivery orders

Before this commit, in the customer portal, it shows the customer
('outgoing') delivery orders, but also the vendors ('incoming') delivery
orders.

Now, only the customer delivery orders are shown.

opw-1955868
  • Loading branch information...
jpp-odoo committed Mar 26, 2019
1 parent b8950ab commit 304b9f750810bc24c493e3eb1a2100ab6f417ef8
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/sale_stock/views/sale_stock_portal_template.xml
@@ -7,7 +7,7 @@
<strong>Delivery Orders</strong>
</div>
<div>
<t t-foreach="sale_order.picking_ids.filtered(lambda picking: picking.picking_type_id.code != 'internal')" t-as="i">
<t t-foreach="sale_order.picking_ids.filtered(lambda picking: picking.picking_type_id.code == 'outgoing')" t-as="i">
<t t-set="delivery_report_url" t-value="'/my/picking/pdf/%s?%s' % (i.id, keep_query())"/>
<div id='picking_info'>
<a t-att-href="delivery_report_url"><span class="fa fa-download" role="img" aria-label="Download" title="Download"/></a>

0 comments on commit 304b9f7

Please sign in to comment.
You can’t perform that action at this time.