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
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
7
9月 21
|
31358 | |||
|
3
9月 22
|
33529 | |||
|
0
4月 26
|
6 | |||
|
2
12月 24
|
4991 | |||
|
1
2月 22
|
6091 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.