[IMP] change action_invoice_create method
bzr revid: rma@tinyerp.com-20130826061503-4r9lv7ywbhfffikj
This commit is contained in:
parent
b25e3805c0
commit
457d7f278e
|
@ -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.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue