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

what is the base configuration to create a planned action

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

could you please specify a little more?

Tác giả
Hello

I am trying to generate a scheduled action that does the following.  after 24 hours you must change the status of a ticket to delayed

El 11 ago 2022, a la(s) 3:03 p.m., Ricardo Gross <notifications@mail.odoo.com> escribió:



could you please specify a little more?

--
Ricardo Gross

Gesendet durch Odoo S.A. in benutzung Odoo.

Câu trả lời hay nhất
for rec in model.search([('create_date','>=', datetime.datetime.now() - timedelta(hours=24)),('state','=','ticket')])
rec['state'] = 'delayed'
Hello Francisco Mendez

Activate debug or developer mode and go to Settings --> Technical --> Scheduled Actions --> create new record  as per following screenshot.



for rec in model.search([('create_date','>=', datetime.datetime.now() - timedelta(hours=24)),('state','=','ticket')])
rec['state'] = 'delayed'


Let us know if you still need any help on this, 

Thanks,


Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
Ảnh đại diện
Huỷ bỏ

thank you, it worked for me

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

thanks, it worked correctly

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
756
0
thg 11 23
1429
0
thg 3 15
5940
1
thg 12 22
6128
0
thg 8 18
4271