forked from Yaltik/golem
[TMP] filter and group date OK
This commit is contained in:
parent
ee432805c4
commit
68480e421d
@ -71,15 +71,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
context="{'group_by': 'payment_date:month'}"/>
|
context="{'group_by': 'payment_date:month'}"/>
|
||||||
</group>
|
</group>
|
||||||
<filter name="payment_7_days" string="payment in 7 days"
|
<filter name="payment_7_days" string="payment in 7 days"
|
||||||
domain="[('state','=', 'draft'), ('payment_date','<=', datetime.datetime.combine(context_today() + datetime.timedelta(days=7), datetime.time(23,59,59))),
|
domain="[('state','=', 'draft'),
|
||||||
('payment_date','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]" />
|
('payment_date','<=', (context_today() + datetime.timedelta(days=7)).strftime('%Y-%m-%d')),
|
||||||
<separator />
|
('payment_date','>=', context_today().strftime('%Y-%m-%d'))]" />
|
||||||
<filter name="payment_30_days" string="payment in 30 days"
|
<filter name="payment_30_days" string="payment in 30 days"
|
||||||
domain="[('state','=', 'draft'), ('payment_date','<=', datetime.datetime.combine(context_today() + datetime.timedelta(days=30), datetime.time(23,59,59))),
|
domain="[('state','=', 'draft'),
|
||||||
('payment_date','>=', datetime.datetime.combine(context_today(), datetime.time(0,0,0)))]" />
|
('payment_date','<=', (context_today() + datetime.timedelta(days=30)).strftime('%Y-%m-%d')),
|
||||||
|
('payment_date','>=', context_today().strftime('%Y-%m-%d'))]" />
|
||||||
<separator />
|
<separator />
|
||||||
<filter name="payment_delayed" string="Payment delayed"
|
<filter name="payment_delayed" string="Payment delayed"
|
||||||
domain="[('state','=', 'draft'), ('payment_date','>=', context_today())]" />
|
domain="[('state','=', 'draft'), ('payment_date','>=', context_today().strftime('%Y-%m-%d'))]" />
|
||||||
</search>
|
</search>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
Reference in New Issue
Block a user