[IMP] sale:-improvements in the yml file

bzr revid: mtr@mtr-20101015052535-8uljtkzgjkfax2wd
This commit is contained in:
mtr
2010-10-15 10:55:35 +05:30
parent ab24ebccca
commit 0820c466f1
+2 -1
View File
@@ -41,7 +41,8 @@
sale_order_obj = self.pool.get('sale.order')
so = sale_order_obj.browse(cr, uid, ref("sale_order_so1"))
picking_id = self.search(cr, uid, [('origin','=',so.name),('type','=','out')])
assert picking_id,"There is a picking attached to this sale order"
if picking_id:
assert picking_id,"There is a picking attached to this sale order"
-
I open the Invoice for the SO.
-