콘텐츠로 건너뛰기
메뉴
신고된 질문입니다
3 답글
2152 화면

Hi, with Studio I added a field in the Contact screen to set a date. Is there a way to add another field below that shows the remaining days left till the date that is set in the previous field? I am familiar with simple coding if this is necessary.

아바타
취소
베스트 답변

Absolutely! If you add a new field, you should be able to tell it to determine the time duration since the date entered into the prior field. JavaScript or Python, depending on your comfort with either language, can perform this function.

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

We use the online version (odoo.com), I think this cannot be retained. What you think?

아바타
취소
베스트 답변

Hi,

You can add a compute field in the same model and then subtract the selected date with today's date and then show the days left.

For adding compute field from UI: https://www.youtube.com/watch?v=j981dytxE28

For adding compute field from code: https://www.youtube.com/watch?v=RirBoceNT5Q


Thanks

아바타
취소
관련 게시물 답글 화면 활동
1
2월 24
3640
2
7월 25
12465
1
9월 21
3666
0
9월 20
3472
2
4월 16
6025