跳至內容
選單
此問題已被標幟
2 回覆
5147 瀏覽次數

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.

頭像
捨棄
作者 最佳答案

Product means product template table. I tried both.

Now, I tried what you stated and no error

頭像
捨棄
最佳答案

Product means

product_product table or product_template table

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
3月 15
4236
2
2月 25
953
1
3月 22
8077
1
8月 16
8575
1
12月 24
4008