Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
5131 Vistas

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.

Avatar
Descartar
Autor Mejor respuesta

Product means product template table. I tried both.

Now, I tried what you stated and no error

Avatar
Descartar
Mejor respuesta

Product means

product_product table or product_template table

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
mar 15
4232
2
feb 25
946
1
mar 22
8068
1
ago 16
8565
1
dic 24
3989