~openerp-dev/openobject-addons/6.0-opw-51238-skh

« back to all changes in this revision

Viewing changes to stock_invoice_directly/test/stock_invoice_directly.yml

  • Committer: Najlaâ
  • Date: 2011-12-15 13:39:33 UTC
  • Revision ID: nel@tinyerp.com-20111215133933-1n7e1f5q1qmjuwp8
[FIX] stock: wizard invoice on shipping
propose more journals when location type is different from supplier and customer

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
  As the Invoice state of the picking order is To be invoiced. I create invoice for my outgoing picking order.
64
64
-
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",