Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2373 Vizualizări

what is the base configuration to create a planned action

Imagine profil
Abandonează

could you please specify a little more?

Autor
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.

Cel mai bun răspuns
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
Imagine profil
Abandonează

thank you, it worked for me

Autor Cel mai bun răspuns

thanks, it worked correctly

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
mar. 25
727
0
nov. 23
1395
0
mar. 15
5894
1
dec. 22
6040
0
aug. 18
4230