Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
5158 Visualizzazioni

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
Abbandona
Autore Risposta migliore

Product means product template table. I tried both.

Now, I tried what you stated and no error

Avatar
Abbandona
Risposta migliore

Product means

product_product table or product_template table

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 15
4236
2
feb 25
957
1
mar 22
8079
1
ago 16
8586
1
dic 24
4013