跳至內容
選單
此問題已被標幟
2244 瀏覽次數
Hello,

I want to show quantity available in my Excel sale report. i added a field to sale_report.py
x_stockactuelle = fields.Float('STOCK AVAILABLE', readonly=True, store=False) 
def_select(self): select_str = """ WITH currency_rate as (%s) SELECT min(l.id) as id, t.x_stockactuelle as x_stockactuelle, """

def _group_by(self): group_by_str = """ GROUP BY t.x_stockactuelle, """

I got this error (the field "x_stockactuelle" is related to "product_template.virtual_available") :

ProgrammingError: ERREUR: column product_template.virtual_available does not exist

LINE 1: SELECT "product_template"."virtual_available"as"virtual_a... 


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 18
12462
1
8月 18
9662
0
2月 23
1773
7
9月 21
28199
0
3月 19
2083