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
Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!
Üye Ol| İlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
|---|---|---|---|---|
|
7
Eyl 21
|
31365 | |||
|
3
Eyl 22
|
33537 | |||
|
0
Nis 26
|
6 | |||
|
2
Ara 24
|
4995 | |||
|
1
Şub 22
|
6098 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.