From 7198629857c15d53c55a5543704fe52e22eb52f6 Mon Sep 17 00:00:00 2001 From: benjamin <benjamin@le-filament.com> Date: Mon, 5 Jul 2021 16:35:38 +0200 Subject: [PATCH] [fix] show signature on done state --- views/report_purchase_order.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/report_purchase_order.xml b/views/report_purchase_order.xml index 8454b45..e2eb811 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> -- GitLab