I am trying to select some data from the database.
I tried to call a function like this :
class Test(models.Model): 
    _name = 'test.test'
    _description = 'test.test'
    emri = fields.Char()
    mbiemri = fields.Char()
    qyteti = fields.Char()
    def getdata(self): 
        data = self.env['test3'].search([])
        print(data)
I am getting this error : AttributeError: 'function' object has no attribute 'env'