From edd333f0ae296c3531fa18578321250df11396c3 Mon Sep 17 00:00:00 2001 From: michel Date: Tue, 6 Feb 2018 10:38:18 +0100 Subject: [PATCH] [TMP] Change color if is payment delayed. --- .../views/golem_account_payment_views.xml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/golem_payment/views/golem_account_payment_views.xml b/golem_payment/views/golem_account_payment_views.xml index dc0a227..f4739d4 100644 --- a/golem_payment/views/golem_account_payment_views.xml +++ b/golem_payment/views/golem_account_payment_views.xml @@ -48,20 +48,22 @@ along with this program. If not, see . account.payment - - - + + state=='draft' and payment_date <= current_date + + + + - - Account Payment Filters account.payment + @@ -78,9 +80,9 @@ along with this program. If not, see . domain="[('state','=', 'draft'), ('payment_date','<=', (context_today() + datetime.timedelta(days=30)).strftime('%Y-%m-%d')), ('payment_date','>=', context_today().strftime('%Y-%m-%d'))]" /> - - + +