Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
5198 Представления

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.

Аватар
Отменить
Автор Лучший ответ

Product means product template table. I tried both.

Now, I tried what you stated and no error

Аватар
Отменить
Лучший ответ

Product means

product_product table or product_template table

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
мар. 15
4281
2
февр. 25
989
1
мар. 22
8118
1
авг. 16
8649
1
дек. 24
4067