Skip to content
Snippets Groups Projects
Commit a5d7d207 authored by Sebastien Versaille's avatar Sebastien Versaille Committed by Martin Trigaux
Browse files

[FIX] purchase: display only one shipping address

The warehouse location is the fallback value
Fixes #4056
parent 182adcdc
Branches
Tags
No related merge requests found
......@@ -14,7 +14,7 @@
<p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
</div>
<div t-if="o.picking_type_id and o.picking_type_id.warehouse_id">
<div t-if="not o.dest_address_id and o.picking_type_id and o.picking_type_id.warehouse_id">
<span t-field="o.picking_type_id.warehouse_id.name"/>
<div t-field="o.picking_type_id.warehouse_id.partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": true}'/>
......
......@@ -14,7 +14,7 @@
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
<p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
</div>
<div t-if="o.picking_type_id.warehouse_id">
<div t-if="not o.dest_address_id and o.picking_type_id.warehouse_id">
<span t-field="o.picking_type_id.warehouse_id.name"/>
<div t-field="o.picking_type_id.warehouse_id.partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "phone", "fax"], "no_marker": true}'/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment