[FIX] purchase tests

This commit is contained in:
Fabien Pinckaers
2015-09-12 21:41:26 +02:00
parent 463e31f4d3
commit af176fa67f
+9 -7
View File
@@ -21,10 +21,12 @@ class procurement_order(osv.osv):
return result
return res
class stock_move(osv.osv):
_inherit = "stock.move"
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
# TODO FP: This code should be uncommented to assign delivery orders directly
# Vut there is code to fix in stock.py before, to not have purchase tests that fails
# class stock_move(osv.osv):
# _inherit = "stock.move"
#
# 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