Hello everyone ,
I would like to know if the execution of a code on odoo online require a subscription to odoo sh ou premice ?
I am working for a digital publishing house and I would like that all customers (previous and futurs) get access to all the products .
I checked the logs, the permissions of the differents modules (slide.channel & res.users) , i do have my differents scripts but i can't make it operate either if i add a new server action or if i create a new execution code tasks .
Concerning the log i add res.users but i can't add slide.channel on admin permissions if i understand it clearly .
To be precise the main goal will be to aumatically add a new product to any kind of users (old or futurs) instantanetly when it's create on the website .
Here is an example of my code :
course_ids = env['slide.channel'].search([]).ids
users = env['res.users'].search([('active', '=', True)])
for user in users:
user.write({'slide_channel_ids': [(4, course_id) for course_id in course_ids]}
I made several versions, some more complex than this but it appears that i can't get it executed and i start to wonder if you can create automated actions with studio or just with the online version of odoo (entreprise 17.0)
I precise that the person i am working with do not have an odoo sh or premise subscription and just the entreprise version .
Thank you in advance for you help
Best Regards