This question has been flagged

Hi folks, (not unnessary, just polite! ;)

I have a model which contains date and time.

In my kanban view should now only the latest be displayed? Is there a way to realize this only in the xml view file for example with a filter/domain or a default_group_by?

Thx

Avatar
Discard
Author Best Answer

straight forward:

<filter name="group_latest" string="Latest" domain="[('date', '>=', time.strftime('%d/%m/%Y'))]" />

Avatar
Discard