[FIX] stock: print company in warehouse address in delivery slip
The delivery slip of a receipt picking with a vendor uses the vendor details as the delivery address Steps to reproduce: 1. Install Inventory 2. Go to Inventory > Operations > Transfers and create a new transfer with: - Contact: Azure Interior - Operation Type: San Francisco: Receipts - Product: Large Cabinet 3. Save the transfer and print the Delivery Slip 4. The delivery address is wrong: it is the partner's address Solution: Change the conditions used to print the delivery address and the warehouse address to print the warehouse address when the delivery address is the same as the partner address opw-2992693 closes odoo/odoo#104051 X-original-commit: 99d04c20896dd06b4d083fe6c079a90e840e3ca2 Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
This commit is contained in:
@@ -8,12 +8,12 @@
|
||||
|
||||
<t t-set="address">
|
||||
<div name="div_outgoing_address">
|
||||
<div t-if="o.move_ids_without_package and o.move_ids_without_package[0].partner_id">
|
||||
<div t-if="o.move_ids_without_package and o.move_ids_without_package[0].partner_id and o.move_ids_without_package[0].partner_id != partner">
|
||||
<span><strong>Delivery Address:</strong></span>
|
||||
<div t-field="o.move_ids_without_package[0].partner_id"
|
||||
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
|
||||
</div>
|
||||
<div t-if="o.picking_type_id.code != 'internal' and (not o.move_ids_without_package or not o.move_ids_without_package[0].partner_id) and o.picking_type_id.warehouse_id.partner_id">
|
||||
<div t-if="o.picking_type_id.code != 'internal' and (not o.move_ids_without_package or not o.move_ids_without_package[0].partner_id or o.move_ids_without_package[0].partner_id == partner) and o.picking_type_id.warehouse_id.partner_id">
|
||||
<span><strong>Warehouse Address:</strong></span>
|
||||
<div t-field="o.picking_type_id.warehouse_id.partner_id"
|
||||
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}'/>
|
||||
|
||||
Reference in New Issue
Block a user