forked from Yaltik/golem
[TMP] filter payment in seven days and thirty days
This commit is contained in:
parent
d53795aad4
commit
a4237fd1c9
@ -65,8 +65,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="payment_date" />
|
<field name="payment_date" />
|
||||||
<field name="reference" />
|
<field name="reference" />
|
||||||
<group string="Group By">
|
<group string="Group By">
|
||||||
<filter name="group_date" string="By date"
|
<filter name="group_month" string="By month"
|
||||||
context="{'group_by': 'payment_date'}"/>
|
context="{'group_by': 'payment_date:month'}"/>
|
||||||
|
<filter name="payment_7_days" string="payement in 7 days"
|
||||||
|
domain="[('payment_date','<=', datetime.datetime.combine(context_today() + datetime.timedelta(days=7), datetime.time(23,59,59))),
|
||||||
|
('payment_date','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]" />
|
||||||
|
<filter name="payment_30_days" string="payement in 30 days"
|
||||||
|
domain="[('payment_date','<=', datetime.datetime.combine(context_today() + datetime.timedelta(days=30), datetime.time(23,59,59))),
|
||||||
|
('payment_date','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]" />
|
||||||
</group>
|
</group>
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user