report_purchaseorder.xml 1.12 KB
Newer Older
François C. committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
<?xml version="1.1" encoding="utf-8"?>
<openerp>
    <data>
        <template id="report_purchaseorder_buyer" inherit_id="purchase.report_purchaseorder_document">
            <xpath expr="//div[@class='col-xs-6']" position="before">
                <div class="col-xs-3 col-xs-offset-1">
                    <t t-if="o.partner_id.customer_code!=''">
                        <p>Customer Code: <span t-field="o.partner_id.customer_code"/></p>
                    </t>
                    <p>Contact:</p>
                    <div t-field="o.partner_id.buyer_partner_id"
                            t-field-options='{"widget": "contact", "fields": ["name", "phone", "email"], "no_marker": true, "phone_icons": true}'/>
                </div>
            </xpath>
            <xpath expr="//div[@class='col-xs-5 col-xs-offset-1']" position="attributes">
                <attribute name="class">col-xs-3 col-xs-offset-1</attribute>
            </xpath>
            <xpath expr="//div[@class='col-xs-6']" position="attributes">
                <attribute name="class">col-xs-3</attribute>
            </xpath>
        </template>
    </data>
</openerp>