hello everyone,
i'm using Odoo 11 at the moment and i have a few automated actions placed that i'd like to transfer into a Python code - is there any idea about how can i do it ??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hello everyone,
i'm using Odoo 11 at the moment and i have a few automated actions placed that i'd like to transfer into a Python code - is there any idea about how can i do it ??
https://www.odoo.yenthevg.com/creating-automated-actions-in-odoo/
See this
thanks for the answer guys
but
i'm trying to convert an existing automated action into a python code not to create a new action
Hi, If you want to write some automated action activate the developer mode and navigate to Settings -> Technical -> Automation ->; Automated Action, make sure that the module named 'base_automation' is installed in the database. From here you can see some existing automated actions that you can refer. # Available variables: # - env: Odoo Environment on which the action is triggered # - model: Odoo 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 # - log: log(message, level='info'): logging function to record debug information in ir.logging table # - Warning: Warning Exception to use with raise # To return an action, assign: action = {...} Thanks
Hi;
Have you had any solution to this issue ?
Thank you for your help
https://www.cybrosys.com/blog/automated-action-in-odoo
Hope this will get into: http://learnopenerp.blogspot.com/2020/05/how-to-create-scheduled-action-in-odoo.html