Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2671 Widoki

Hello,


I'm working on Odoo 14


I'd lke to have expiraton notifications for some date fields that my entity has


How do I achieve that ?

 

I inherited a  module that extends the vanilla project  module 


In such module that I inherited, there's an entity that extends project.Task and it has some more  date fields


In the project module, tasks can have an expration date


That is, when such date is approaching, the users can receive some notifications


I'd like to have notifications for  the further date fileds my entity adds 


Thanks in advance

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

You can use automated actions in odoo to trigger an action based on your date field value.

https://ibb.co/WPM6PcW

In this example, model selected as project.task. according to this action, when the deadline field in task is updated a python function will executed. In python code if deadline date is today, a description will be written.

Similarly you can create an automated action that will trigger a python code on update of your custom field.

Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 21
2621
1
lip 25
2359
2
lip 25
7853
2
lip 25
4251
2
lip 25
4016