[FIX] nan_prodlot_quality_control: name of action workflow functions
This commit is contained in:
parent
66a568a361
commit
d36751c4f2
|
@ -14,7 +14,7 @@
|
|||
<field name="name">draft</field>
|
||||
<field name="flow_start">True</field>
|
||||
<field name="kind">function</field>
|
||||
<field name="action">action_wofkflow_draft()</field>
|
||||
<field name="action">action_workflow_draft()</field>
|
||||
<field name="signal_send">subflow.draft</field>
|
||||
</record>
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
|||
<field name="wkf_id" ref="wkf_prodlot"/>
|
||||
<field name="name">next_test</field>
|
||||
<field name="kind">function</field>
|
||||
<field name="action">action_wofkflow_next_test()</field>
|
||||
<field name="action">action_workflow_next_test()</field>
|
||||
</record>
|
||||
|
||||
<record id="act_pending_test" model="workflow.activity">
|
||||
|
@ -30,14 +30,14 @@
|
|||
<field name="name">pending_test</field>
|
||||
<field name="kind">subflow</field>
|
||||
<field name="subflow_id" ref="nan_quality_control.wkf_qc_test"/>
|
||||
<field name="action">action_wofkflow_pending_test()</field>
|
||||
<field name="action">action_workflow_pending_test()</field>
|
||||
</record>
|
||||
|
||||
<record id="act_valid" model="workflow.activity">
|
||||
<field name="wkf_id" ref="wkf_prodlot"/>
|
||||
<field name="name">valid</field>
|
||||
<field name="kind">function</field>
|
||||
<field name="action">action_wofkflow_valid()</field>
|
||||
<field name="action">action_workflow_valid()</field>
|
||||
<field name="signal_send">subflow.valid</field>
|
||||
</record>
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
|||
<field name="name">test_failed</field>
|
||||
<field name="kind">subflow</field>
|
||||
<field name="subflow_id" ref="nan_quality_control.wkf_qc_test"/>
|
||||
<field name="action">action_wofkflow_test_failed()</field>
|
||||
<field name="action">action_workflow_test_failed()</field>
|
||||
<field name="signal_send">subflow.test_failed</field>
|
||||
</record>
|
||||
|
||||
|
@ -54,7 +54,7 @@
|
|||
<field name="wkf_id" ref="wkf_prodlot"/>
|
||||
<field name="name">cancel</field>
|
||||
<field name="kind">function</field>
|
||||
<field name="action">action_wofkflow_cancel()</field>
|
||||
<field name="action">action_workflow_cancel()</field>
|
||||
<field name="signal_send">subflow.cancel</field>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
12
stock.py
12
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.
|
||||
|
|
Loading…
Reference in New Issue