Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
1681 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
февр. 24
2982
1
сент. 21
3038
1
июл. 21
11359
0
сент. 20
2900
2
апр. 16
5601