I have some python functions(send_otp, verify_otp) in a custom module called "authenticator"
I want to use/call that functions in another custom module "mypos".
I want to call the sent_otp() function from mypos module.
Can I do this in odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I have some python functions(send_otp, verify_otp) in a custom module called "authenticator"
I want to use/call that functions in another custom module "mypos".
I want to call the sent_otp() function from mypos module.
Can I do this in odoo?
Assuming that these functions are not of any Models. Let us assume that inside the "authenticator" module there is a folder called "tools" and inside it a python file called "functions.py" with functions(send_otp, verify_otp).
if you want to use these functions in any other module,:-
First, include the "authenticator" module in depends inside the manifest file.
And import these functions in the needed python file like:-
from odoo.addons.authenticator.tools.functions import send_otp,verify_otp
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija| Related Posts | Replies | Rodiniai | Veikla | |
|---|---|---|---|---|
|
Doubt about module
Solved
|
2
geg. 22
|
2623 | ||
|
2
liep. 25
|
5265 | |||
|
1
spal. 23
|
4519 | |||
|
1
bal. 23
|
3737 | |||
|
1
gruod. 22
|
3701 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.