Skip to Content
Menu
This question has been flagged
2 Replies
1558 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
Related Posts Replies Views Activity
1
Jun 24
425
0
Nov 23
278
0
Jun 23
1473
0
Oct 22
1255
0
Oct 22
1176