Skip to content
Snippets Groups Projects
Commit 14490824 authored by clesgow's avatar clesgow Committed by William Henrotin
Browse files

[FIX] stock: remove incoming warehouse address from delivery slip


Steps to reproduce:
- Configuration -> Settings -> Activate multi-locations.
- Configuration -> Warehouses -> Three-step delivery.
- Generate a three-step delivery (like through a sale order).
- Select either PICK or PACK pickings.
- Print the delivery slip.
- There is a "warehouse address" field with the customer's adress in it.

It makes little sense to display the current warehouse for internal
transfers, as they keep being in the same warehouse after all.
This doesn't impact inter-warehouse transit as in this case, an outgoing
picking is done from one warehouse to the transit location and an
incoming picking is done from the transit location to the other
warehouse.
In both cases the addresses are correctly displayed and didn't use this
'warehouse address'.

opw-3335185

closes odoo/odoo#123509

X-original-commit: 2ff0056d
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent c15ef4da
Branches
Tags
No related merge requests found
......@@ -30,10 +30,6 @@
<span><strong>Vendor Address:</strong></span>
<t t-set="show_partner" t-value="True" />
</div>
<div name="warehouse_address" t-if="o.picking_type_id.code=='internal' and partner">
<span><strong>Warehouse Address:</strong></span>
<t t-set="show_partner" t-value="True" />
</div>
<div name="customer_address" t-if="o.picking_type_id.code=='outgoing' and partner and partner != partner.commercial_partner_id">
<span><strong>Customer Address:</strong></span>
<t t-set="show_partner" t-value="True" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment