コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
2150 ビュー

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
3629
2
7月 25
12450
1
9月 21
3656
0
9月 20
3465
2
4月 16
6017