I use a python library in the form:
class SomeClass(object)
def __init__(self, arg1, arg2): ... def fct1(self):
... return something
Directly in python:
x = SomeClass(arg1,arg2)
create an object alright.
I would like to do the same in Odoo. I tried the following:
class SomeClass(models.Model)
def connect(self, arg1, arg2):
...
def fct1(self):
...
return something
But
x = connect(arg1,arg2)
returns :
NameError: global name 'connect' is not defined
How should I use my python library?
TIA