This question has been flagged
2 Replies
1453 Views

Hi,

I'm currently facing an issue that stop mytask's progress.

Basically, I need to access some data stored in a relation table.

For that, I use this line :

    request.env['x_device_x_support_rel'].browse([(etc...)])

But it return this error : return self.models[model_name].

My model is set like this :
    device_ids = fields.Many2many(
    'x.device',
    string='Devices'
    )

I don't know how to solve this issue...

Thanks.

Avatar
Discard
Author

Thanks for your answer.

Yes I can access to my DB and the relation table that I want to access with pgAdmin.

The problem is that I want to access it in a python file in order to get a part of its content.

Author Best Answer

Thanks for your answer.

Yes I can access to my DB and the relation table that I want to access with pgAdmin.

The problem is that I want to access it in a python file in order to get a part of its content.

Avatar
Discard
Best Answer

From pgadmin you can access the table as well (and the database). I can't access it right now so I can't writte the full path.

Have you tried that?

Avatar
Discard