Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2315 Tampilan
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... 


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
1
Agu 18
12522
1
Agu 18
9719
0
Feb 23
1832
7
Sep 21
28286
0
Mar 19
2143