Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
5128 Vizualizări

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.

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Product means product template table. I tried both.

Now, I tried what you stated and no error

Imagine profil
Abandonează
Cel mai bun răspuns

Product means

product_product table or product_template table

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mar. 15
4231
2
feb. 25
946
1
mar. 22
8068
1
aug. 16
8561
1
dec. 24
3989