Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
1424 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć

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

Najlepsza odpowiedź

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!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
paź 24
1624
2
paź 24
2963
1
lip 24
2186
0
cze 24
1144
2
lut 24
2667