[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#123903 X-original-commit: 4c5b08e89e7c623dbd34498739f52e3258d807f6 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
This commit is contained in:
committed by
William Henrotin
parent
c26aa4fe09
commit
28b5b3b195
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user