[FIX] sale_margin: fixed the yaml test
bzr revid: qdp-launchpad@tinyerp.com-20101217103026-d74d7m138hzf6s0o
This commit is contained in:
parent
f2aa6adb15
commit
a2f14d4c07
|
@ -50,7 +50,7 @@
|
|||
sale_order_obj = self.pool.get('sale.order')
|
||||
so = sale_order_obj.browse(cr, uid, ref("sale_order_so11"))
|
||||
ids = self.search(cr, uid, [('origin', '=', so.name),('type', '=', 'out')])
|
||||
self.create_invoice(cr, uid, ids, {"lang": "en_US", "search_default_available":
|
||||
self.action_invoice_create(cr, uid, ids, context={"lang": "en_US", "search_default_available":
|
||||
1, "tz": False, "active_model": "ir.ui.menu", "contact_display": "partner",
|
||||
"active_ids": [ref("stock.menu_action_picking_tree")], "active_id": ref("stock.menu_action_picking_tree"),
|
||||
})
|
||||
|
@ -63,4 +63,4 @@
|
|||
pick_ids = self.search(cr, uid, [('origin', '=', so.name)])
|
||||
pick_brw = self.browse(cr, uid, pick_ids[0])
|
||||
assert pick_brw.invoice_ids,"Invoice has not been created"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue