Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5130 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Product means product template table. I tried both.

Now, I tried what you stated and no error

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Product means

product_product table or product_template table

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
4232
2
thg 2 25
946
1
thg 3 22
8068
1
thg 8 16
8565
1
thg 12 24
3989