Hello,
I am trying to do this but I am confused on how to do this filter.
I am in Odoo v10
In the accounting application.
in the list of invoices, I would like to add in the filter option an option to filter on the invoices from the last 7 days.
from the last month
from the last quarter
from the last year.
I don't understand how to do it.
I go to developer mode, then in the manage filter and create a new one.
I am trying with this folowing info:
Filter name= Today
Model= Invoice
Action is left blank
Domain= [['date_invoice','=',time.strftime('%Y-%m-%d')]]
Context left as default []
Sort left by defualt []
Default filter is off
User is me
Active is enable
But then when I go to the list of invoice, I don't see the today option in the default filter option.
What I am doing wrong?