<?xml version="1.0" encoding="utf-8"?>
<odoo>

	<template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document">
		<xpath expr="//div[@name='purchase_shipping_address']" position="after">
			<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-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/>
            </div>
		</xpath>
	</template>

	<template id="report_purchasequotation_document" inherit_id="purchase.report_purchasequotation_document">
		<xpath expr="//div[@name='purchase_shipping_address']" position="after">
			<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-options='{"widget": "contact", "fields": ["address", "phone"], "no_marker": True, "phone_icons": True}'/>
            </div>
		</xpath>
	</template>

</odoo>
