You are on page 1of 2

Código reporte andirent inventarios

<t t-set="address">
<div name="div_outgoing_address">
<!-- /////////////////// NEW
CODE //////////////////////////// -->
<div t-
if="o.move_lines[0].location_dest_id.warehouse_id.partner_id">
<span><strong>Delivery Address:</strong></span>
<div t-
field="o.move_lines[0].location_dest_id.warehouse_id.partner_id" t-
options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;:
[&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;:
True, &quot;phone_icons&quot;: True}"/>
</div>
<div t-elif="o.picking_type_id.code != 'internal' 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="{&quot;widget&quot;:
&quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;,
&quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}"/>
</div>

<!--<div t-if="o.should_print_delivery_address()">-->
<!-- <span><strong>Delivery Address:</strong></span>-->
<!-- <div t-field="o.move_lines[0].partner_id" t-
options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;:
[&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;:
True, &quot;phone_icons&quot;: True}"/>-->
<!--</div>-->
<!--<div t-elif="o.picking_type_id.code != 'internal' 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="{&quot;widget&quot;:
&quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;,
&quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;:
True}"/>-->
<!--</div>-->
</div>
</t>
<t t-set="information_block">
<div class="row">
<div class="col-7" name="div_incoming_address">
<t t-set="show_partner" t-value="False"/>
<div t-if="o.picking_type_id.code=='incoming' and
partner">
<span><strong>Vendor Address:</strong></span>
<t t-set="show_partner" t-value="True"/>
</div>
<div 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"/>
</div>
<div t-if="show_partner" name="partner_header">
<div t-field="partner.commercial_partner_id" t-
options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;:
[&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;:
True, &quot;phone_icons&quot;: True}"/>
<p t-
if="partner.sudo().commercial_partner_id.vat"><t t-
esc="o.company_id.country_id.vat_label or 'Tax ID'"/>: <span t-
field="partner.sudo().commercial_partner_id.vat"/></p>
</div>

<!-- /////////////////// NEW


CODE //////////////////////////// -->
<div t-if="o.picking_type_id.code == 'internal' and
o.location_id.warehouse_id.partner_id">
<span><strong>Warehouse Address:</strong></span>
<div t-field="o.location_id.warehouse_id.partner_id"
t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;:
[&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;:
True, &quot;phone_icons&quot;: True}"/>
</div>

</div>
</div>
</t>

You might also like