[FIX] stock buf, sale_expense test bug

This commit is contained in:
Fabien Pinckaers
2015-09-12 18:45:02 +02:00
parent 05e3a1a31d
commit 4a8d435a84
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -24,7 +24,7 @@ class procurement_order(osv.osv):
class stock_move(osv.osv):
_inherit = "stock.move"
def action_confirm(self, cr, uid, moves, context=None):
res = super(stock_move, self).action_confirm(cr, uid, moves, context=context or {})
super(stock_move, self).action_assign(cr, uid, moves, context=context or {})
def action_confirm(self, cr, uid, ids, context=None):
res = super(stock_move, self).action_confirm(cr, uid, ids, context=context or {})
super(stock_move, self).action_assign(cr, uid, ids, context=context or {})
return res
@@ -76,4 +76,4 @@ class TestSaleExpense(TestSale):
# both expenses should be invoiced
inv_id = so.action_invoice_create()
inv = self.env['account.invoice'].browse(inv_id)
self.assertEqual(inv.amount_total, 732.0, 'Sale Expense: invoicing of expense is wrong')
self.assertEqual(inv.amount_untaxed, 732.0, 'Sale Expense: invoicing of expense is wrong')