diff --git a/views/report_purchase_order.xml b/views/report_purchase_order.xml index 8454b45d0825125abb9c087a74b2add092a8206d..e2eb8111e13bca4ca7d4072c82a0ddb108c65c2b 100644 --- a/views/report_purchase_order.xml +++ b/views/report_purchase_order.xml @@ -34,7 +34,7 @@ <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> @@ -45,13 +45,13 @@ </tr> <tr> <td style="height: 20px; padding: 5px"> - Date : <span t-if="o.state == 'purchase'" t-field="o.date_order" t-field-options="{"format": "yyyy-MM-dd"}"/> + 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 == 'purchase'" src="pylote_imprime/static/description/Signature-loic.png" style="height:150px;"/> + <img t-if="o.state in ['purchase', 'done']" src="pylote_imprime/static/description/Signature-loic.png" style="height:150px;"/> </td> </tr> </tbody>