Skip to Content
Menu
This question has been flagged
2 Replies
4319 Views

I am trying to get  a value into a field from the product table using self.cr.execute.

But I am getting an error ValueError: <class 'psycopg2.ProgrammingError'>: 
self._cr.execute('select id  from product where id = %s ',(id1,))

"relation "product" does not exist

I tried everything and searched many documents.

Avatar
Discard
Author Best Answer

Product means product template table. I tried both.

Now, I tried what you stated and no error

Avatar
Discard
Best Answer

Product means

product_product table or product_template table

Avatar
Discard
Related Posts Replies Views Activity
2
Mar 15
3386
1
Mar 22
7092
1
Aug 16
7395
1
Oct 22
2445
0
Jul 24
3554