diff --git a/addons/stock/report/picking.py b/addons/stock/report/picking.py index d9d306caefb..ba5e74d2143 100644 --- a/addons/stock/report/picking.py +++ b/addons/stock/report/picking.py @@ -36,5 +36,6 @@ class picking(report_sxw.rml_parse): desc = '[' + move_line.product_id.default_code + ']' + ' ' + desc return desc -report_sxw.report_sxw('report.stock.picking.list','stock.picking','addons/stock/report/picking.rml',parser=picking, header='internal') +report_sxw.report_sxw('report.stock.picking.list','stock.picking','addons/stock/report/picking.rml',parser=picking) +report_sxw.report_sxw('report.stock.picking.list.internal','stock.picking','addons/stock/report/picking_internal.rml',parser=picking, header='internal') # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml index 084f2a8381d..0a17f56fc71 100644 --- a/addons/stock/report/picking.rml +++ b/addons/stock/report/picking.rml @@ -66,7 +66,6 @@ - @@ -76,7 +75,6 @@ - @@ -86,7 +84,6 @@ - @@ -134,7 +131,7 @@ - + Description @@ -151,9 +148,6 @@ Quantity - - Barcode - @@ -162,6 +156,24 @@ + + + + Supplier Address : [[ (picking.type == 'in' or removeParentNode('para')) and '' ]] + Customer Address : [[ (picking.type == 'out' or removeParentNode('para')) and '' ]] + Warehouse Address : [[ (picking.type == 'internal' or removeParentNode('para')) and '' ]] + [[ (picking.partner_id and picking.partner_id.id and picking.partner_id.title.name) or '' ]] [[ picking.partner_id and picking.partner_id.id and picking.partner_id.name ]] + [[ picking.partner_id and display_address(picking.partner_id) ]] + [[ picking.partner_id.phone or picking.partner_id.email or removeParentNode('para')]] + + + Contact Address : + [[ picking.partner_id and picking.partner_id.title.name or '' ]] [[ picking.partner_id and picking.partner_id.name or '' ]] + [[ picking.partner_id and display_address(picking.partner_id) ]] + [[ picking.partner_id.phone or picking.partner_id.email or removeParentNode('para')]] + + + @@ -215,7 +227,7 @@ - + Description @@ -232,15 +244,12 @@ Quantity - - Barcode -
[[ repeatIn([line for line in picking.move_lines if ((line.state == 'confirmed' or line.state=='done' or line.state=='assigned') and not line.scrapped)],'move_lines') ]] [[ (picking.move_lines!=[] and removeParentNode('para')) or removeParentNode('section')]] - + [[ get_product_desc(move_lines) ]] @@ -259,9 +268,6 @@ [[ formatLang(move_lines.product_qty) ]] [[ move_lines.product_uom.name ]] - - [[ move_lines.product_id.ean13 ]] -
@@ -270,7 +276,7 @@
[[ repeatIn([line for line in picking.move_lines if (line.state == 'draft' or line.state=='waiting')],'move_lines') ]] [[ (picking.move_lines!=[] and removeParentNode('para')) or removeParentNode('section')]] - + [[ get_product_desc(move_lines) ]] @@ -289,9 +295,6 @@ [[ formatLang(move_lines.product_qty) ]] [[ move_lines.product_uom.name ]] - - [[ move_lines.product_id.ean13 ]] -
diff --git a/addons/stock/report/picking_internal.rml b/addons/stock/report/picking_internal.rml new file mode 100644 index 00000000000..084f2a8381d --- /dev/null +++ b/addons/stock/report/picking_internal.rml @@ -0,0 +1,303 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Description + + + Lot + + + Status + + + Location + + + Quantity + + + Barcode + + + + + [[repeatIn(objects,'picking')]] + [[picking.type == 'out' and picking.partner_id and setLang(picking.partner_id.lang) or '']] + + + + + + + + + + + + + Delivery Order : [[ (picking.type == 'out' or removeParentNode('para')) and '' ]] [[ picking.name ]] + Incoming Shipment : [[ (picking.type == 'in' or removeParentNode('para')) and '' ]] [[ picking.name ]] + Internal Shipment : [[ (picking.type == 'internal' or removeParentNode('para')) and '' ]] [[ picking.name ]] + + + + + + + + + + Journal + + + Order(Origin) + + + Schedule Date + + + Weight + + + + + + + [[ picking.stock_journal_id.name]] + + + [[ picking.origin or '']] + + + [[ formatLang(picking.min_date,date_time = True) ]] + + + [[ 'weight' in picking._columns.keys() and picking.weight or '']] + + + + + + + + + + Description + + + Serial Number + + + Status + + + Location + + + Quantity + + + Barcode + + + +
+ [[ repeatIn([line for line in picking.move_lines if ((line.state == 'confirmed' or line.state=='done' or line.state=='assigned') and not line.scrapped)],'move_lines') ]] + [[ (picking.move_lines!=[] and removeParentNode('para')) or removeParentNode('section')]] + + + + [[ get_product_desc(move_lines) ]] + + + [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]] + + + Waiting Availability[[ move_lines.state == 'confirmed' and ' ' or removeParentNode('para') ]] + Done[[ move_lines.state == 'done' and ' ' or removeParentNode('para') ]] + Available[[ move_lines.state == 'assigned' and ' ' or removeParentNode('para') ]] + + + [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] + + + [[ formatLang(move_lines.product_qty) ]] [[ move_lines.product_uom.name ]] + + + [[ move_lines.product_id.ean13 ]] + + + +
+ [[ ([line for line in picking.move_lines if (line.state == 'draft' or line.state=='waiting' )]) and 'Non Assigned Products:' or removeParentNode('para') ]] + +
+ [[ repeatIn([line for line in picking.move_lines if (line.state == 'draft' or line.state=='waiting')],'move_lines') ]] + [[ (picking.move_lines!=[] and removeParentNode('para')) or removeParentNode('section')]] + + + + [[ get_product_desc(move_lines) ]] + + + [[ (move_lines.prodlot_id and move_lines.prodlot_id.name) or '' ]] + + + [[ (picking.type == 'in' or removeParentNode('para')) ]][[ move_lines.state == 'done' and 'Received' or move_lines.state]] + [[ (picking.type == 'out' or removeParentNode('para')) ]][[ move_lines.state == 'done' and 'Delivered' or move_lines.state]] + [[ (picking.type == 'internal' or removeParentNode('para')) ]][[ move_lines.state == 'done' and 'Transferred' or move_lines.state]] + + + [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] + + + [[ formatLang(move_lines.product_qty) ]] [[ move_lines.product_uom.name ]] + + + [[ move_lines.product_id.ean13 ]] + + + +
+ + + +
+
+
diff --git a/addons/stock/stock_report.xml b/addons/stock/stock_report.xml index 540e6a8f902..792f8b0b29d 100644 --- a/addons/stock/stock_report.xml +++ b/addons/stock/stock_report.xml @@ -2,7 +2,7 @@ - +