Skip to Content
Menu
This question has been flagged
2 Replies
5143 Rodiniai

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.

Portretas
Atmesti
Autorius Best Answer

Product means product template table. I tried both.

Now, I tried what you stated and no error

Portretas
Atmesti
Best Answer

Product means

product_product table or product_template table

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
kov. 15
4236
2
vas. 25
951
1
kov. 22
8077
1
rugp. 16
8573
1
gruod. 24
4007