Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
5148 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
4236
2
fev. 25
953
1
mar. 22
8077
1
ago. 16
8575
1
dez. 24
4008