[FIX] changed an unsafe dictionary access into a get() call, this caused a test to fail

bzr revid: cbi@openerp.com-20120925072737-bspeduh88b1zash3
This commit is contained in:
Chris Biersbach
2012-09-25 09:27:37 +02:00
parent aac4cf3dc5
commit da7879638c
+1 -1
View File
@@ -102,7 +102,7 @@ class report_stock(report_int):
qty = 0
io = StringIO.StringIO()
gt = stock_graph.stock_graph(io, context['lang'], cr)
gt = stock_graph.stock_graph(io, context.get('lang', 'en_US'), cr)
for prod_id in products:
gt.add(prod_id, names.get(prod_id, 'Unknown'), products[prod_id])
gt.draw()