跳至内容
菜单
此问题已终结
1 回复
1847 查看

Hi all,

I use the feature of Odoo Projects to send tasks via e-Mail. All tasks created via Email ends up in the "Inbox" column of my project.

Now I want to make sure that tasks are not to long laying around in "Inbox", latest after three days it should be processed and added to a fitting next stage. Therefore I wonder if there is a way to set for all task created (via mail) in the Inbox column automatically a due date "+3 days after creation".

Is something like this possible?


Thanks a lot!

形象
丢弃
最佳答案

HI Björn

Without specific custom dev you can do the following:

Create an Automated Action to Set Due Date
  1. Go to Settings > Technical > Automation > Automated Actions.
  2. Click Create to set up a new automated action with the following configuration:
    • Model: Project Task
    • Trigger: On Creation
    • Filter: Add a filter to apply the action only to tasks in the "Inbox" stage:
      • Field: Stage
      • Condition: = (equal)
      • Value: Select the "Inbox" stage (or use its ID if you need to specify it directly).
  3. Action to Do: Choose Update the record.
  4. In the Update Values section, set the Deadline field:
    • In the "Deadline" (or "Date Deadline") field, add the following code to set the due date 3 days after creation:
    • record.date_deadline = record.create_date + timedelta(days=3)
      

To make it consistent, I propose to add a specific stage, and then adapt the alias setting (in technical -> alias), and add stage besides the team


Hope this helps you

Daniel

形象
丢弃
相关帖文 回复 查看 活动
1
11月 24
1234
2
10月 24
1460
1
10月 24
1127
0
3月 23
1715
1
12月 21
5086