[IMP] change action_invoice_create method

bzr revid: rma@tinyerp.com-20130826061503-4r9lv7ywbhfffikj
This commit is contained in:
Randhir Mayatra (OpenERP) 2013-08-26 11:45:03 +05:30
parent b25e3805c0
commit 457d7f278e
1 changed files with 3 additions and 3 deletions

View File

@ -11,9 +11,9 @@
-
Now I create an invoice for order on reception.
-
!python {model: stock.picking}: |
pick_ids = self.search(cr, uid, [('purchase_id','=',ref('purchase_order_2'))])
self.action_invoice_create(cr, uid, pick_ids, ref('account.expenses_journal'))
!python {model: purchase.order}: |
pick_ids = [self.browse(cr, uid, ref("purchase_order_2")).id]
self.action_invoice_create(cr, uid, pick_ids)
-
I check that the invoice of order.
-