Skip to Content
Menu
This question has been flagged
1 Atsakyti
4809 Rodiniai

Hello friends, i have a table column with date type and at my view once i set the domain rules it doesn't works throws exception: openerp.netsvc: ERRO:  operator doesn't exists: date ~~* unknown
LINE 1: ...n_month" WHERE (report_commission_month."in_date" ilike '2014/07'...

Below my line of xml file:
<field name="domain">[('in_date','=ilike',time.strftime('%Y/%m'))]</field>

Thank you all for some hint on how to solve this.

Portretas
Atmesti
Best Answer

Don't need '=' in second tuple for operator.

 

    <field name="domain">[('in_date','ilike',time.strftime('%Y/%m'))]</field>

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
birž. 25
1216
1
saus. 25
18033
1
saus. 20
4005
1
gruod. 19
6468
1
gruod. 19
17357