63
63
As the Invoice state of the picking order is To be invoiced. I create invoice for my outgoing picking order.
65
65
!python {model: stock.invoice.onshipping}: |
66
wiz_id = self.create(cr, uid, {'invoice_date': '2010-08-04', 'journal_id': ref('account.bank_journal')},
66
wiz_id = self.create(cr, uid, {'invoice_date': '2010-08-04', 'journal_id': ref('account.sales_journal')},
67
67
{'active_ids': [ref("stock_picking_out0")]})
68
68
self.create_invoice(cr, uid, [wiz_id], {"lang": "en_US",
69
69
"search_default_available": 1, "tz": False, "active_model": "stock.picking",