Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2377 Weergaven
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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
aug. 18
12590
1
aug. 18
9783
0
feb. 23
1875
7
sep. 21
28415
0
mrt. 19
2216