Hello,
I need to know that how to call function through URL?
You can call a funtion from url using http.route
for example call a function from url www.domain.com/web/my/home
@http.route(['/my/home'], type='http', auth="public", website=True)
def your_function(self, **kw):
# your code
or if you want to call a function defined inside a model use this inside your function
request.env['your.model'].function_name()
Thank You Mohammed
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
How To Calculate Age From Birthday
Opgelost
|
7
sep. 21
|
31357 | ||
|
3
sep. 22
|
33529 | |||
|
0
apr. 26
|
6 | |||
|
2
dec. 24
|
4989 | |||
|
1
feb. 22
|
6090 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.