Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2029 Zobrazení

I would like to define in xml (view and/or action parameters) a pivot view of leads, comparing the current year revenue with the previous year one , i.e. using the date filter and comparision with previous year.

That's because I would like to make the year dynamic (i.e. always comparing the current year with the previous year), I know i can save thes filter and recall it but it would always display the same years.


Avatar
Zrušit
Autor Nejlepší odpověď

It works for the filtering part, but it doesn't automatically apply the comparision feature.

Avatar
Zrušit
Nejlepší odpověď

Hi,

You can open the pivot view with action and add a dynamic filter to achieve what you require.

Here is an example which adds a dynamic filter on date.


<filter string="Today Activities"
        name="activities_today"
domain="[('activity_ids.date_deadline', '=',
context_today().strftime('%Y-%m-%d'))]"/>


Hope it helps

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 24
29
0
bře 20
1830
1
pro 19
4502
1
čvn 25
556
0
led 24
1655