Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2820 Weergaven

I'm really going to appreciate your help, I've searched a lot; I haven't found a solution though, it's something I really need.

Avatar
Annuleer
Beste antwoord

Hello @Steven Morales Fallas

There is no specific place in website where a button directly calls a python function.

but, you can go achieve it in the following ways:

1. Add button click event in js file 
- Please refer to this link for how to add js in odoo: https://www.odoo.com/documentation/16.0/developer/reference/frontend/javascript_reference.html

2. You will need to write json rpc method in js for which you can call the python function
- Please refer to this link for how to add json rpc in odoo js: https://www.odoo.com/documentation/16.0/developer/reference/frontend/services.html?#rpc-service

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
okt. 19
2895
1
jun. 24
3088
0
mei 24
1079
0
jan. 24
741
0
aug. 23
1111