[IMP]improve code

bzr revid: sgo@tinyerp.com-20130219085328-um1q8bs4iw773ivs
This commit is contained in:
sgo@tinyerp.com
2013-02-19 14:23:28 +05:30
parent 83af08294e
commit 3e01083a1b
@@ -46,7 +46,6 @@
ctx = context.copy()
ctx.update({"active_model": 'sale.order', "active_ids": [ref("sale_order_8")], "active_id":ref("sale_order_8")})
pay_id = self.create(cr, uid, {'advance_payment_method': 'fixed', 'amount': 5})
print ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.",uid
self.create_invoices(cr, uid, [pay_id], context=ctx)
invoice_ids = self.pool.get('sale.order').browse(cr, uid, ref("sale_order_8")).invoice_ids