Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
5125 Visualizações

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
Cancelar
Autor Melhor resposta

Product means product template table. I tried both.

Now, I tried what you stated and no error

Avatar
Cancelar
Melhor resposta

Product means

product_product table or product_template table

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
mar. 15
4229
2
fev. 25
942
1
mar. 22
8068
1
ago. 16
8561
1
dez. 24
3988