[FIX] point_of_sale: Sales details products translations

In the Sales Details report, the products were
not translated in the user language.

opw-647700
This commit is contained in:
Denis Ledoux 2015-08-24 18:27:02 +02:00
parent 802d1abe7a
commit 2d3973481f
1 changed files with 1 additions and 1 deletions

View File

@ -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,