[FIX] stock buf, sale_expense test bug
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user