This question has been flagged
5 Replies
23282 Views

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 ??

Avatar
Discard
Best Answer

https://www.odoo.yenthevg.com/creating-automated-actions-in-odoo/

See this

Avatar
Discard
Author Best Answer

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

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

Hi;


Have you had any solution to this issue ?

Thank you for your help

Avatar
Discard
Best Answer

https://www.cybrosys.com/blog/automated-action-in-odoo

Avatar
Discard