I need to add a default filter for the tree view of my module.
I saw an example code in openerp, like this one:
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}" />
This example in the purchase module, grouped by partner_id , as an example.
Now I have a custom module that I need to have a default filter when you click on its menu.
And this filter should show all records that have not βexpiredβ, or that have not transmitted the actual date when I look at the records in the module.
I have this field in my custom module:
'Fecha_de_Vence': fields.date( 'Fecha de Vencimiento', required=True, select=True, ),
This is the field that I need to take as a filter for all entries in this module.
Right now, in the "advanced search" I can set, for example, Fecha de Vencimiento no more than the actual date , well, I need this to be like the default filter.
Can anyone shed some light on how to get this by default in the openerp xml view?
source share