[TMP] filter payment in seven days and thirty days

This commit is contained in:
michel 2018-02-05 11:51:20 +01:00
parent d53795aad4
commit a4237fd1c9

View File

@ -65,8 +65,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="payment_date" />
<field name="reference" />
<group string="Group By">
<filter name="group_date" string="By date"
context="{'group_by': 'payment_date'}"/>
<filter name="group_month" string="By month"
context="{'group_by': 'payment_date:month'}"/>
<filter name="payment_7_days" string="payement in 7 days"
domain="[('payment_date','&lt;=', datetime.datetime.combine(context_today() + datetime.timedelta(days=7), datetime.time(23,59,59))),
('payment_date','&gt;=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]" />
<filter name="payment_30_days" string="payement in 30 days"
domain="[('payment_date','&lt;=', datetime.datetime.combine(context_today() + datetime.timedelta(days=30), datetime.time(23,59,59))),
('payment_date','&gt;=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]" />
</group>
</search>
</field>