From 2d3973481f6252797ca8f405fabca153e6ec040b Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 24 Aug 2015 18:27:02 +0200 Subject: [PATCH] [FIX] point_of_sale: Sales details products translations In the Sales Details report, the products were not translated in the user language. opw-647700 --- addons/point_of_sale/report/pos_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/report/pos_details.py b/addons/point_of_sale/report/pos_details.py index f430029ea2d..927d5a7611f 100644 --- a/addons/point_of_sale/report/pos_details.py +++ b/addons/point_of_sale/report/pos_details.py @@ -47,7 +47,7 @@ class pos_details(report_sxw.rml_parse): user_ids = form['user_ids'] or self._get_all_users() company_id = user_obj.browse(self.cr, self.uid, self.uid).company_id.id pos_ids = pos_obj.search(self.cr, self.uid, [('date_order','>=',form['date_start'] + ' 00:00:00'),('date_order','<=',form['date_end'] + ' 23:59:59'),('user_id','in',user_ids),('state','in',['done','paid','invoiced']),('company_id','=',company_id)]) - for pos in pos_obj.browse(self.cr, self.uid, pos_ids): + for pos in pos_obj.browse(self.cr, self.uid, pos_ids, context=self.localcontext): for pol in pos.lines: result = { 'code': pol.product_id.default_code,