Skip to Content
Menú
This question has been flagged
2365 Vistes
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
Descartar
Related Posts Respostes Vistes Activitat
1
d’ag. 18
12574
1
d’ag. 18
9763
0
de febr. 23
1864
7
de set. 21
28363
0
de març 19
2196