diff --git a/prodlot_workflow.xml b/prodlot_workflow.xml index 632010a..93a4e0f 100644 --- a/prodlot_workflow.xml +++ b/prodlot_workflow.xml @@ -14,7 +14,7 @@ draft True function - action_wofkflow_draft() + action_workflow_draft() subflow.draft @@ -22,7 +22,7 @@ next_test function - action_wofkflow_next_test() + action_workflow_next_test() @@ -30,14 +30,14 @@ pending_test subflow - action_wofkflow_pending_test() + action_workflow_pending_test() valid function - action_wofkflow_valid() + action_workflow_valid() subflow.valid @@ -46,7 +46,7 @@ test_failed subflow - action_wofkflow_test_failed() + action_workflow_test_failed() subflow.test_failed @@ -54,7 +54,7 @@ cancel function - action_wofkflow_cancel() + action_workflow_cancel() subflow.cancel diff --git a/quality_control.py b/quality_control.py index 72b1004..49d7901 100644 --- a/quality_control.py +++ b/quality_control.py @@ -50,7 +50,7 @@ class qc_test(osv.osv): _inherit = 'qc.test' # qc.test - def action_wofkflow_draft(self, cr, uid, ids, context=None): + def action_workflow_draft(self, cr, uid, ids, context=None): """ Check if the Test is in any Lot Trigger Test. In these case, raise an exception if the Test is not the current test of Lot or it is not in @@ -88,7 +88,7 @@ class qc_test(osv.osv): 'lot_id': lot_test.prodlot_id.id, 'lot_state': state_labels[lot_test.prodlot_id.state], }) - return super(qc_test, self).action_wofkflow_draft(cr, uid, ids, + return super(qc_test, self).action_workflow_draft(cr, uid, ids, context) qc_test() diff --git a/stock.py b/stock.py index 966bc99..3c3bd64 100644 --- a/stock.py +++ b/stock.py @@ -320,7 +320,7 @@ class stock_production_lot(osv.osv): return res # stock.production.lot - def action_wofkflow_draft(self, cr, uid, ids, context=None): + def action_workflow_draft(self, cr, uid, ids, context=None): """ Sets the State of Lot to 'Draft' and deactivate it """ @@ -362,7 +362,7 @@ class stock_production_lot(osv.osv): return next_trigger_ids and next_trigger_ids[0] or False # stock.production.lot - def action_wofkflow_next_test(self, cr, uid, ids, context=None): + def action_workflow_next_test(self, cr, uid, ids, context=None): """ Find the Next Test to pass and write it to 'current_qc_test_trigger_id' field. @@ -393,7 +393,7 @@ class stock_production_lot(osv.osv): return True # stock.production.lot - def action_wofkflow_valid(self, cr, uid, ids, context=None): + def action_workflow_valid(self, cr, uid, ids, context=None): """ Sets the State of Lot to 'Valid' and activate the Lot. """ @@ -416,7 +416,7 @@ class stock_production_lot(osv.osv): return True # stock.production.lot - def action_wofkflow_pending_test(self, cr, uid, ids, context=None): + def action_workflow_pending_test(self, cr, uid, ids, context=None): """ Sets the State of Lot to 'Pending Test' and deactivate it, and returns the ID of current QC Test. @@ -436,7 +436,7 @@ class stock_production_lot(osv.osv): return lot.current_qc_test_id.id # stock.production.lot - def action_wofkflow_test_failed(self, cr, uid, ids, context=None): + def action_workflow_test_failed(self, cr, uid, ids, context=None): """ Sets the State of Lot to 'Test Failed', deactivate it and returns the ID of current Test @@ -508,7 +508,7 @@ class stock_production_lot(osv.osv): return False # stock.production.lot - def action_wofkflow_cancel(self, cr, uid, ids, context=None): + def action_workflow_cancel(self, cr, uid, ids, context=None): """ Sets the State of Lot to 'Cancel', deactivate it and leave empty the 'Current QC Test Trigger' field.