ProgrammingError:对表" iris_category"的FROM子句条目的无效引用

时间:2015-04-14 15:46:54

标签: python-2.7 odoo-8

我已经创建了一个模块,并且正在添加一个类别,它在以前版本的Odoo中工作正常,并且在2015年4月10日我更新了新版本我收到了错误 错误:

 HINT:  Perhaps you meant to reference the table alias "iris_business_category__category_id".

,在查询SELECT

"iris_business_category"."id",iris_category__content_id."title" FROM "iris_business_category","iris_category" as "iris_business_category__category_id","iris_content" as "iris_category__content_id"
                    WHERE "iris_business_category".id IN %s AND ("iris_business_category"."category_id" = "iris_business_category__category_id"."id") AND ("iris_category"."content_id" = "iris_category__content_id"."id")  ORDER BY "iris_business_category"."id"  

如何在新版本中解决此问题?

1 个答案:

答案 0 :(得分:0)

是的,这是一个问题,并且已经在odoo上提到过。