How to write current time comparing domain for xml


I have some records, for example:

Venue, Start date, End date
Meeting Room A, 5/1/2021 10:00:00, 5/1/2021 12:00:00
Meeting Room B, 5/1/2021 11:00:00, 5/1/2021 12:00:00

If current time is 5/1/2021 10:30:00, I want to display only Meeting Room A in the tree view.

Something like this
<field name="domain" eval="[(*current_datetime*, '<', 'end_date' )]" pyson="1"/>

May I know how to write the current_datetime in XML domain for this case? Thank you.

You must use a PYSON expression with DateTime like: [('end_date', '>=', DateTime())].

Thank you, it works :smiley: