تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5308 أدوات العرض

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
مارس 15
4390
2
فبراير 25
1089
1
مارس 22
8232
1
أغسطس 16
8768
1
ديسمبر 24
4248