[FIX] stock: display product variant name in the slip

This commit is contained in:
Denis Ledoux 2014-08-29 16:29:17 +02:00
parent c914893f6f
commit 6b11e929a4
1 changed files with 1 additions and 4 deletions

View File

@ -30,10 +30,7 @@ class picking(report_sxw.rml_parse):
'get_product_desc': self.get_product_desc, 'get_product_desc': self.get_product_desc,
}) })
def get_product_desc(self, move_line): def get_product_desc(self, move_line):
desc = move_line.product_id.name return move_line.product_id.name_get()[0][1]
if move_line.product_id.default_code:
desc = '[' + move_line.product_id.default_code + ']' + ' ' + desc
return desc
for suffix in ['', '.in', '.out']: for suffix in ['', '.in', '.out']:
report_sxw.report_sxw('report.stock.picking.list' + suffix, report_sxw.report_sxw('report.stock.picking.list' + suffix,