Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
5166 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Product means product template table. I tried both.

Now, I tried what you stated and no error

Awatar
Odrzuć
Najlepsza odpowiedź

Product means

product_product table or product_template table

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
4239
2
lut 25
957
1
mar 22
8079
1
sie 16
8594
1
gru 24
4018