[IMP] procurement: Initialize get_phantom_bom_id method as it is raising an error from yml of mrp_jit when one install first mrp and after that, mrp_jit. get_phantom_bom_id defined in mrp module which is not dependent for mrp_jit.
bzr revid: pso@tinyerp.com-20120726060836-jcbx6d95pl4nbx9m
This commit is contained in:
parent
8d58cdc1bf
commit
167614c6d8
|
@ -4,7 +4,6 @@
|
|||
|
||||
<record model="workflow.transition" id="procurement.trans_confirm_confirm_wait">
|
||||
<field name="signal" eval="False"/>
|
||||
<field name="condition" eval="True"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
|
|
@ -320,6 +320,12 @@ class procurement_order(osv.osv):
|
|||
return True
|
||||
return False
|
||||
|
||||
#Initialize get_phantom_bom_id method as it is raising an error from yml of mrp_jit
|
||||
#when one install first mrp and after that, mrp_jit. get_phantom_bom_id defined in mrp module
|
||||
#which is not dependent for mrp_jit.
|
||||
def get_phantom_bom_id(self, cr, uid, ids, context=None):
|
||||
return False
|
||||
|
||||
def action_confirm(self, cr, uid, ids, context=None):
|
||||
""" Confirms procurement and writes exception message if any.
|
||||
@return: True
|
||||
|
|
Loading…
Reference in New Issue