I'm using Odoo v12 and i want to create a scheduler that will be executed once my "date_end" field is achieved , i know that i must add something to nextcall field of ir.cron record but i don't know how to write the syntax of it
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3143
Views
try:
cron = self.sudo().env.ref('my_module.my_cron_external_id')
cron.sudo().write({'nextcall': datetime.now()})
except Exception as e:
pass
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up