From 03e8089a004021881036092fd37e4d98fae396f5 Mon Sep 17 00:00:00 2001
From: Benjamin <benjamin@le-filament.com>
Date: Mon, 23 Mar 2020 20:32:33 +0100
Subject: [PATCH] =?UTF-8?q?[cgscop=20#167]=20ajout=20filtres=20:=20ce=20mo?=
 =?UTF-8?q?is-ci,=20mois=20pr=C3=A9c=C3=A9dent?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 views/calendar.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/views/calendar.xml b/views/calendar.xml
index 446fda1..50ac1ab 100644
--- a/views/calendar.xml
+++ b/views/calendar.xml
@@ -202,6 +202,11 @@
                     <filter string="UR" name="ur" domain="[('type', '=', 'ur')]"/>
                     <filter string="Hors UR" name="not_ur" domain="[('type', '=', 'outside')]"/>
                     <filter string="Absent" name="absent" domain="[('type', '=', 'absent')]"/>
+                    <separator/>
+                    <filter string="Ce mois-ci" name="this_month" domain="[('start','&lt;=', (context_today()-relativedelta(day=31, months=0)).strftime('%Y-%m-%d')),
+                         ('start','&gt;=',(context_today()-relativedelta(day=1,months=0)).strftime('%Y-%m-%d'))]"/>
+                    <filter string="Le mois pécédent" name="last_month" domain="[('start','&lt;=', (context_today()-relativedelta(day=31, months=1)).strftime('%Y-%m-%d')),
+                         ('start','&gt;=',(context_today()-relativedelta(day=1,months=1)).strftime('%Y-%m-%d'))]"/>
                 </filter>
             </field>
         </record>
-- 
GitLab