Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
5124 Vues

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
Ignorer
Auteur Meilleure réponse

Product means product template table. I tried both.

Now, I tried what you stated and no error

Avatar
Ignorer
Meilleure réponse

Product means

product_product table or product_template table

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mars 15
4229
2
févr. 25
942
1
mars 22
8068
1
août 16
8561
1
déc. 24
3988