跳至内容
菜单
此问题已终结
2 回复
5161 查看

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
4238
2
2月 25
957
1
3月 22
8079
1
8月 16
8593
1
12月 24
4017