Hello,
I need to know that how to call function through URL?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
How To Calculate Age From Birthday
Đã xử lý
|
|
7
thg 9 21
|
29247 | |
|
|
3
thg 9 22
|
31640 | ||
|
|
2
thg 12 24
|
2990 | ||
|
|
1
thg 2 22
|
4548 | ||
|
|
1
thg 2 22
|
7638 |