Browse Source

[ADD] b_shift : 4 weeks search filter

pull/136/head
Elouan Le Bars 5 years ago
parent
commit
b0fd6ed1da
  1. 4
      beesdoo_shift/views/task.xml

4
beesdoo_shift/views/task.xml

@ -37,7 +37,9 @@
<filter string="Unassigned" name="unassigned" <filter string="Unassigned" name="unassigned"
domain="[('worker_id', '=', False)]" /> domain="[('worker_id', '=', False)]" />
<separator /> <separator />
<filter string="4 next days" name="nextweek"
<filter string="+ / - 4 weeks" name="4weeksintervall"
domain="[('end_time','&gt;', (context_today() - datetime.timedelta(days=28)).strftime('%Y-%m-%d 00:00:00')), ('start_time','&lt;', (context_today() + datetime.timedelta(days=28)).strftime('%Y-%m-%d 23:59:59'))]" />
<filter string="J+4" name="nextweek"
domain="[('end_time','&gt;', context_today().strftime('%Y-%m-%d 00:00:00')), ('start_time','&lt;', (context_today() + datetime.timedelta(days=4)).strftime('%Y-%m-%d 23:59:59'))]" /> domain="[('end_time','&gt;', context_today().strftime('%Y-%m-%d 00:00:00')), ('start_time','&lt;', (context_today() + datetime.timedelta(days=4)).strftime('%Y-%m-%d 23:59:59'))]" />
<filter string="J-5" name="jminus5" <filter string="J-5" name="jminus5"
domain="[('end_time','&gt;', (context_today() - datetime.timedelta(days=5)).strftime('%Y-%m-%d 00:00:00')), ('start_time','&lt;', (context_today() - datetime.timedelta(days=5)).strftime('%Y-%m-%d 23:59:59'))]" /> domain="[('end_time','&gt;', (context_today() - datetime.timedelta(days=5)).strftime('%Y-%m-%d 00:00:00')), ('start_time','&lt;', (context_today() - datetime.timedelta(days=5)).strftime('%Y-%m-%d 23:59:59'))]" />

Loading…
Cancel
Save