my function is defined in the website controller and I wish to call it from a model, e.g (res.partner)
신고된 질문입니다
1
회신
9530
화면
You can do this by:
Importing the controller into the model and then you can call the function from the controller. for eg:
from odoo.addons.module_name.controllers.main import class_name_of_the_controller.
Thank you.
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
|
2
7월 24
|
4542 | ||
|
|
1
8월 15
|
5341 | ||
|
|
2
12월 21
|
26335 | ||
|
|
4
10월 21
|
40519 | ||
|
|
1
7월 21
|
5823 |