my function is defined in the website controller and I wish to call it from a model, e.g (res.partner)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
7787
화면
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
|
2542 | ||
|
1
8월 15
|
3770 | ||
|
2
12월 21
|
24380 | ||
|
4
10월 21
|
37549 | ||
|
1
7월 21
|
4104 |