跳至内容
菜单
此问题已终结
2 回复
1504 查看

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.

形象
丢弃
最佳答案

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 :)

形象
丢弃

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).

最佳答案

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!

形象
丢弃
相关帖文 回复 查看 活动
1
10月 24
1794
2
10月 24
3154
1
7月 24
2374
0
6月 24
1253
2
2月 24
2788