From 68480e421d6c02f1511a7b594f2bbf6e0648c902 Mon Sep 17 00:00:00 2001 From: michel Date: Mon, 5 Feb 2018 17:02:55 +0100 Subject: [PATCH] [TMP] filter and group date OK --- .../views/golem_account_payment_views.xml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/golem_payment/views/golem_account_payment_views.xml b/golem_payment/views/golem_account_payment_views.xml index a0dc565..dc0a227 100644 --- a/golem_payment/views/golem_account_payment_views.xml +++ b/golem_payment/views/golem_account_payment_views.xml @@ -71,15 +71,16 @@ along with this program. If not, see . context="{'group_by': 'payment_date:month'}"/> - - + domain="[('state','=', 'draft'), + ('payment_date','<=', (context_today() + datetime.timedelta(days=7)).strftime('%Y-%m-%d')), + ('payment_date','>=', context_today().strftime('%Y-%m-%d'))]" /> + + domain="[('state','=', 'draft'), ('payment_date','>=', context_today().strftime('%Y-%m-%d'))]" />