Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
1764 Lượt xem

I have created an automation in To Do app base on this configuration.


Automation Name: test

Model: Task

Trigger: After creation

Delay: 0 Hours after creation

Apply on: Match all records


It has 1 Actions To Do, which is Execute Code. It contains this. 


# Available variables:
#  - env: environment on which the action is triggered
#  - model: model of the record on which the action is triggered; is a void recordset
#  - record: record on which the action is triggered; may be void
#  - records: recordset of all records on which the action is triggered in multi-mode; may be void
#  - time, datetime, dateutil, timezone: useful Python libraries
#  - float_compare: utility function to compare floats based on specific precision
#  - b64encode, b64decode: functions to encode/decode binary data
#  - log: log(message, level='info'): logging function to record debug information in ir.logging table
#  - _logger: _logger.info(message): logger to emit messages in server logs
#  - UserError: exception class for raising user-facing warning messages
#  - Command: x2many commands namespace
# To return an action, assign: action = {...}

log("Hello world", level='info')



The problem is whenever I create new Task, this automation could not be triggered at all. I already checked other triggers and "Stage is set to" trigger does not work also. I need help as to why this happens and some possible solutions. Thank you in advance.

Ảnh đại diện
Huỷ bỏ

Hello, did you find any solution?

Tác giả Câu trả lời hay nhất

Sorry can't comment Cybrosys Techno Solutions Pvt.Ltd in your reply (i need more karma). Do you mean this blog post "https://www.cybrosys.com/blog/how-to-configure-automated-actions-in-odoo-18"? I already followed, but the trigger "After creation" does not work. Other trigger like "On save" works.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Please refer to the blog below for configuring automated actions in Odoo 18.

https://www.odoo.com/forum/help-1/automation-does-not-trigger-odoo-18-enterprise-270266


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 25
1558
1
thg 2 25
828
0
thg 1 25
864
0
thg 12 24
733
1
thg 12 24
1894