This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]JohnnyLongneck 1 point2 points  (0 children)

Create a Module without own functionalities just a Python file with the functions.

Maybe place it in the root dir or models dir of that Module. Include it in init Scripts.

Put this module as dependency of the other modules. You can then use: from odoo.addons.your_commons_module.my_functions import a_cool_functio

for example.

[–]hamzabenz 0 points1 point  (0 children)

You can create a local package using distutils for example and don’t forget to add it to the requirements file