[FIX]: [5.0 - POS] stock move lines coming from point of sale do not have correct...
authorAmit Dodiya (OpenERP) <ado@tinyerp.com>
Thu, 18 Aug 2011 07:30:55 +0000 (13:00 +0530)
committerAmit Dodiya (OpenERP) <ado@tinyerp.com>
Thu, 18 Aug 2011 07:30:55 +0000 (13:00 +0530)
bzr revid: ado@tinyerp.com-20110818073055-jj5hqntgw5ff3gqm

addons/point_of_sale/pos.py

index 8b3d91a..0940591 100644 (file)
@@ -349,7 +349,7 @@ class pos_order(osv.osv):
                             (location_id, stock_dest_id)= (stock_dest_id, location_id)
 
                         self.pool.get('stock.move').create(cr, uid, {
-                            'name': 'Stock move (POS %d)' % (order.id, ),
+                            'name': 'Stock move (%s) ' % (order.name, ) + line.product_id.partner_ref,
                             'product_uom': line.product_id.uom_id.id,
                             'product_uos': line.product_id.uom_id.id,
                             'picking_id': picking_id,