diff --git a/addons/stock/report/picking.py b/addons/stock/report/picking.py index 29a53fba7a2..2956c5954eb 100644 --- a/addons/stock/report/picking.py +++ b/addons/stock/report/picking.py @@ -29,7 +29,11 @@ class picking(report_sxw.rml_parse): super(picking, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, + 'get_productdesc':self.get_productdesc }) + def get_productdesc(self,code): + code = '[' + code.product_id.default_code + ']' + return [code] report_sxw.report_sxw('report.stock.picking.list','stock.picking','addons/stock/report/picking.rml',parser=picking) # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml index 4e4abb72b0e..688f879f14e 100644 --- a/addons/stock/report/picking.rml +++ b/addons/stock/report/picking.rml @@ -251,7 +251,8 @@ - [ [[ (move_lines.product_id.default_code) or removeParentNode('font') ]] ] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] + [[ repeatIn(get_productdesc(move_lines),'desc') ]] + [[ desc ]] [[ move_lines.product_id.name ]] [[ move_lines.product_id.variants or '']] [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]]