Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5152 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
4236
2
ก.พ. 25
955
Link a child from a parent แก้ไขแล้ว
1
มี.ค. 22
8077
1
ส.ค. 16
8576
Relate sale.order.lines to stock.picking แก้ไขแล้ว
1
ธ.ค. 24
4011