Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5145 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

Product means product template table. I tried both.

Now, I tried what you stated and no error

Avatar
Zrušit
Nejlepší odpověď

Product means

product_product table or product_template table

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
4236
2
úno 25
951
1
bře 22
8077
1
srp 16
8573
1
pro 24
4007