How to use "import <module>" in automated action in Odoo.sh 11.0?
I have my Python code which want to use in automated action. I can't use it directly because import is prohibited:
forbidden opcode(s) in ... IMPORT_NAME
I can create a module and publish it on GitHib to get our Odoo.sh updated, then install it, but then I stucked again with same problem: i can't use "import" command in action script.
What am I doing wrong? How to create automated action in a way allow to use my python code?
(my use case is very simple: when data changed in monitored model, in Automated Action, OnCreateOrUpdate, I must call my REST API endpoint (doing that by using "import requests") and passing there details of changed data).
Please give me an advice, I'm fully locked between closed doors, looking forward for any hint!