Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
1100 Vistas

I'm creating an automated action in Studio and noticed there is a field called "Available on the Website". Can someone point me to some documentation or explain what that means? I'm pretty new to Odoo and just trying to understand the platform.

Avatar
Descartar
Mejor respuesta

Hello,

Checking this box means that you can call the server action externally using a public URL. Obviously security considerations apply (e.g. if your server action's code contain a sudo(), this might make some sensitive information accessible externally, etc.) but otherwise can allow external hooks to trigger code internally (the way you would do it with a route controller if you were writing code).

You can get some information about that in the tooltip of the "Available in website" field.


Hope this helps :)

Avatar
Descartar

Thanks for the awesome answer. Is there a place I can find documentation to read about this? Also is there a way that I can limit/expose certain data selectively?

@Nathan Allen
Little doc about this, it's not included in the default doc about server actions because this behaviour is added by the Website app and not part of the core features of server actions

You can always use the env's user and check their group to share data selectively (e.g. `if env.user.has_group('base.group_user')` for example).

Mejor respuesta

Sure! "Available on the Website" is a Boolean field in Odoo Studio which indicates if the action you're creating is accessible from the website. This setting is only visible once your action is completed and the Automated Action app has been installed on the Odoo instance. You can find more information about Automated Actions in the Odoo Documentation website. I hope this helps!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
oct 24
905
2
oct 24
2142
1
jul 24
1406
0
jun 24
717
2
feb 24
1883