Sélectionner une révision Git
Ce projet est sous licence GNU Affero General Public License v3.0.
En savoir plus
report_purchase_order.xml 2,89 Kio
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_purchase_pylote" inherit_id="purchase.report_purchaseorder_document">
<xpath expr="//div[@class='row mt32 mb32']" position="replace">
<div class="row mt32 mb32">
<div t-if="o.s_summary" class="col-3">
<strong>Objet:</strong>
<p t-field="o.s_summary"/>
</div>
<div t-if="o.s_contact" class="col-3">
<strong>Contact:</strong>
<p t-field="o.s_contact" t-options="{"widget": "contact", "fields": ["name", "phone", "fax", "email"], "no_marker": True, "phone_icons": True}"/>
</div>
<div t-if="o.name" class="col-3">
<strong>Our Order Reference:</strong>
<p t-field="o.name"/>
<strong>Your Order Reference:</strong>
<p t-field="o.partner_ref"/>
</div>
<div t-if="o.date_order" class="col-3">
<strong>Order Date:</strong>
<p t-field="o.date_order"/>
</div>
</div>
</xpath>
<xpath expr="//table/thead/tr/th" position="before">
<th><strong>Nom</strong></th>
</xpath>
<xpath expr="//table/tbody/tr/td" position="before">
<td>
<span t-esc="line.product_id.name"/>
</td>
</xpath>
<xpath expr="//p[@t-field='o.notes']" position="after">
<table class="table table-bordered" style="margin-top: 20px;">
<tbody>
<tr>
<td style="height: 20px; padding: 5px">
<strong>Approuvé par : Loic MARCHIN (CEO)</strong>
</td>
</tr>
<tr>
<td style="height: 20px; padding: 5px">
Date : <span t-if="o.state in ['purchase', 'done']" t-field="o.date_order" t-field-options="{"format": "yyyy-MM-dd"}"/>
</td>
</tr>
<tr>
<td style="height: 100px; padding: 5px">
Signature :
<img t-if="o.state in ['purchase', 'done']" src="pylote_imprime/static/description/Signature-loic.png" style="height:150px;"/>
</td>
</tr>
</tbody>
</table>
</xpath>
</template>
</data>
</openerp>