[FIX] stock: added _workflow_signal() overwriting in stock.picking.in class

bzr revid: qdp-launchpad@openerp.com-20120919080409-2bjqabh08vlyc3a1
This commit is contained in:
Quentin (OpenERP)
2012-09-19 10:04:09 +02:00
parent 85b16184f8
commit ef8eaf9c15
+6 -1
View File
@@ -2884,6 +2884,11 @@ class stock_picking_in(osv.osv):
#instead of it's own workflow (which is not existing)
return self.pool.get('stock.picking')._workflow_trigger(cr, uid, ids, trigger, context=context)
def _workflow_signal(self, cr, uid, ids, signal, context=None):
#override in order to fire the workflow signal on given stock.picking workflow instance
#instead of it's own workflow (which is not existing)
return self.pool.get('stock.picking')._workflow_signal(cr, uid, ids, signal, context=context)
_columns = {
'state': fields.selection(
[('draft', 'Draft'),
@@ -2924,7 +2929,7 @@ class stock_picking_out(osv.osv):
return self.pool.get('stock.picking')._workflow_trigger(cr, uid, ids, trigger, context=context)
def _workflow_signal(self, cr, uid, ids, signal, context=None):
#override in order to Fire the workflow Signal on given stock.picking workflow instance.
#override in order to fire the workflow signal on given stock.picking workflow instance
#instead of it's own workflow (which is not existing)
return self.pool.get('stock.picking')._workflow_signal(cr, uid, ids, signal, context=context)