my function is defined in the website controller and I wish to call it from a model, e.g (res.partner)
この質問にフラグが付けられました
1
返信
9483
ビュー
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
|
4479 | ||
|
|
1
8月 15
|
5287 | ||
|
|
2
12月 21
|
26275 | ||
|
|
4
10月 21
|
40431 | ||
|
|
1
7月 21
|
5749 |