[FIX] sale_stock: prevent displaying vendor's info in DO
Steps to reproduce: - Activate Dropship and multi routes - Create a SO and select the route Dropship - Confirm the SO - Confirm the purchase - Click on Customer Preview Issue: In the customer preview, if the customer click on the do, vendor's info will be displayed. opw-2961884 closes odoo/odoo#102020 X-original-commit: 672a3edce29bd1e16de64c4bcc8452842d3e16d4 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Yolann Sabaux (yosa) <yosa@odoo.com>
This commit is contained in:
@@ -12,12 +12,13 @@
|
||||
</div>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='informations']" position="inside">
|
||||
<t t-if="sale_order.picking_ids">
|
||||
<t t-set="delivery_orders" t-value="sale_order.picking_ids.filtered(lambda picking: picking.picking_type_id.code == 'outgoing')"/>
|
||||
<t t-if="delivery_orders">
|
||||
<div>
|
||||
<strong>Delivery Orders</strong>
|
||||
</div>
|
||||
<div>
|
||||
<t t-foreach="sale_order.picking_ids.filtered(lambda picking: picking.picking_type_id.code == 'outgoing')" t-as="picking">
|
||||
<t t-foreach="delivery_orders" t-as="picking">
|
||||
<t t-set="delivery_report_url"
|
||||
t-value="'/my/picking/pdf/%s?%s' % (picking.id, keep_query())"/>
|
||||
<div name="delivery_order"
|
||||
|
||||
Reference in New Issue
Block a user