{"id":1343,"date":"2019-05-15T18:22:21","date_gmt":"2019-05-15T12:52:21","guid":{"rendered":"http:\/\/blog.tenthplanet.in\/?p=1343"},"modified":"2026-03-03T10:14:33","modified_gmt":"2026-03-03T10:14:33","slug":"scheduled-actions-in-odooerp","status":"publish","type":"post","link":"https:\/\/tenthplanet.in\/blogs\/scheduled-actions-in-odooerp\/","title":{"rendered":"Six Simple steps to execute a Scheduled actions in Odoo ERP"},"content":{"rendered":"<p style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">Scheduled actions in Odoo ERP or Schedulers are automated actions that run for a period of time that is mentioned. These actions run automatically with any input given manually. This makes a lot of scenarios like Daily Attendance Report etc., easier because the reports will be sent automatically to the Managers or other Higher Officials. OdooERP supports these scheduled actions to make the Human Resource Management an efficient one<\/span><\/p>\n<p style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">Firstly, a scheduled action code has to be formed which contains the information such as <\/span><\/p>\n<ul style=\"text-align: left\">\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">model of the scheduled action<\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">scheduler user<\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">when the scheduled action has to be created<\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">how often the scheduled action has to be generated automatically<\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">number of times the scheduled action has to be run<\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">Priority of the scheduled action<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">In addition to these details, <\/span><\/p>\n<ul style=\"text-align: left\">\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">Email template <\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">Sender<\/span><\/p>\n<\/li>\n<li>\n<p align=\"justify\"><span style=\"font-size: large\">Recipient <\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">has to be included in the code<\/span><\/p>\n<p class=\"western\" style=\"text-align: left\" align=\"left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1348\" src=\"https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_Scheduledaction_pythoncode.png\" alt=\"\" width=\"611\" height=\"477\" srcset=\"https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_Scheduledaction_pythoncode.png 611w, https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_Scheduledaction_pythoncode-300x234.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/p>\n<p class=\"western\" style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">In the above code, the TO and the CC e-mail ids have to be mentioned and then the scheduled action will run on the SMPT_SERVER<\/span><\/p>\n<p class=\"western\" style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">Once this is defined, the XML file has to be updated<\/span><\/p>\n<p class=\"western\" style=\"text-align: left\" align=\"left\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1349\" src=\"https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_Scheduledaction_XMLcode.png\" alt=\"\" width=\"517\" height=\"264\" srcset=\"https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_Scheduledaction_XMLcode.png 517w, https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_Scheduledaction_XMLcode-300x153.png 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/p>\n<p class=\"western\" style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">Here, we will define the interval time, the model name and the name of the cron<\/span><\/p>\n<p style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">When all of the above is done, a scheduled action will be created under the \u2018Scheduled Actions\u2019 menu in Settings module<\/span><\/p>\n<p style=\"text-align: left\" align=\"justify\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1344\" src=\"https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_scheduledaction_cron.png\" alt=\"\" width=\"1363\" height=\"622\" srcset=\"https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_scheduledaction_cron.png 1363w, https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_scheduledaction_cron-300x137.png 300w, https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_scheduledaction_cron-1024x467.png 1024w, https:\/\/tenthplanet.in\/blogs\/wp-content\/uploads\/sites\/21\/2019\/05\/Odoo_scheduledaction_cron-768x350.png 768w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/p>\n<p style=\"text-align: left\" align=\"justify\"><span style=\"font-size: large\">When the scheduled action is correctly set, the cron will run automatically according the time mentioned<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scheduled actions or Schedulers are automated actions that run for a period of time<\/p>\n","protected":false},"author":23,"featured_media":1384,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[23,76,77],"class_list":["post-1343","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-odoo","tag-odoo","tag-odoo-cron","tag-odoo-schedulers"],"acf":[],"_links":{"self":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts\/1343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/comments?post=1343"}],"version-history":[{"count":0,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/posts\/1343\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/media\/1384"}],"wp:attachment":[{"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/media?parent=1343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/categories?post=1343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tenthplanet.in\/blogs\/wp-json\/wp\/v2\/tags?post=1343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}