[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-20120720123623-i2ajochy2ka8ouzj
This commit is contained in:
pso (OpenERP) 2012-07-20 18:06:23 +05:30
parent e0f94dc482
commit 8f2e689ce2
1 changed files with 3 additions and 0 deletions

View File

@ -319,6 +319,9 @@ class procurement_order(osv.osv):
if record.move_id and record.move_id.state == 'cancel':
return True
return False
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.