Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2046 Vizualizări

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.


Imagine profil
Abandonează
Autor Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 24
29
0
mar. 20
1833
1
dec. 19
4502
1
iun. 25
558
0
ian. 24
1658