=== modified file 'point_of_sale/pos_view.xml'
--- point_of_sale/pos_view.xml 2010-10-17 11:59:01 +0000
+++ point_of_sale/pos_view.xml 2010-10-26 07:40:38 +0000
@@ -49,7 +49,8 @@
-
+
+
=== modified file 'point_of_sale/wizard/pos_payment.xml'
--- point_of_sale/wizard/pos_payment.xml 2010-10-15 06:18:37 +0000
+++ point_of_sale/wizard/pos_payment.xml 2010-10-26 06:41:36 +0000
@@ -53,6 +53,14 @@
form
new
+
+ Add Product
+ ir.actions.act_window
+ pos.add.product
+ form
+ form
+ new
+
=== modified file 'point_of_sale/wizard/pos_return.py'
--- point_of_sale/wizard/pos_return.py 2010-10-15 13:26:40 +0000
+++ point_of_sale/wizard/pos_return.py 2010-10-26 07:24:21 +0000
@@ -340,8 +340,10 @@
date_cur=time.strftime('%Y-%m-%d %H:%M:%S')
uom_obj = self.pool.get('product.uom')
return_boj=self.pool.get('pos.return')
- return_id=return_boj.search(cr,uid,[])
- data=return_boj.read(cr,uid,return_id,[])[0]
+ return_id = return_boj.search(cr,uid,[])
+ data = {}
+ if return_id:
+ data = return_boj.read(cr,uid,return_id,[])[0]
wf_service = netsvc.LocalService("workflow")
self_data = self.read(cr, uid, ids)[0]
order_obj.add_product(cr, uid, active_ids[0], self_data['product_id'], self_data['quantity'], context=context)