I have to write domain for checking that the present date and time is between two Datetime fields. I wrote the domain, but it shows this error:
DataError: invalid input syntax for type timestamp: "date_from"
LINE 1: ...OM "hr_holidays" WHERE (("hr_holidays"."today" >= 'date_from...
^
My domain is:
<field name="domain">[('today','>=','date_from'),('today','<=','date_to')]</field>
today = fields.Datetime(default=fields.Datetime.now)`
Please help me.