[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:
pso (OpenERP) 2012-07-26 11:38:36 +05:30
parent 8d58cdc1bf
commit 167614c6d8
2 changed files with 6 additions and 1 deletions

View File

@ -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>

View File

@ -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