콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
1947 화면

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.


아바타
취소
작성자 베스트 답변

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

아바타
취소
베스트 답변

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

아바타
취소
관련 게시물 답글 화면 활동
1
7월 24
29
0
3월 20
1729
1
12월 19
4426
1
6월 25
470
0
1월 24
1555