my function is defined in the website controller and I wish to call it from a model, e.g (res.partner)
This question has been flagged
1
Reply
9521
डेटा देखने का तरीका
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
साइन अप करें| Related Posts | Replies | डेटा देखने का तरीका | ऐक्टिविटी | |
|---|---|---|---|---|
|
|
2
जुल॰ 24
|
4510 | ||
|
|
1
अग॰ 15
|
5307 | ||
|
|
2
दिस॰ 21
|
26324 | ||
|
|
4
अक्तू॰ 21
|
40484 | ||
|
|
1
जुल॰ 21
|
5791 |