69
69
Then I click on 'Create Invoices' button
71
71
!python {model: stock.invoice.onshipping}: |
73
74
sale_id = sale_obj.browse(cr, uid, ref("sale_order_so6"))
74
75
ids = [x.id for x in sale_id.picking_ids]
75
wiz_id = self.create(cr, uid, {'invoice_date': '2010-07-17', 'journal_id': ref('account.sales_journal')},
76
wiz_id = self.create(cr, uid, {'invoice_date': time.strftime('%Y-%m-%d'), 'journal_id': ref('account.sales_journal')},
77
78
self.create_invoice(cr, uid, [wiz_id], {"active_ids": ids, "active_id": ids[0]})