From 167614c6d8d905fcce6da48b530131f2d0394683 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Thu, 26 Jul 2012 11:38:36 +0530 Subject: [PATCH] [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 --- addons/mrp_jit/mrp_jit.xml | 1 - addons/procurement/procurement.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/addons/mrp_jit/mrp_jit.xml b/addons/mrp_jit/mrp_jit.xml index 6856285b9a6..99f74a19517 100644 --- a/addons/mrp_jit/mrp_jit.xml +++ b/addons/mrp_jit/mrp_jit.xml @@ -4,7 +4,6 @@ - diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index debeddc607e..5f2fb1e161c 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -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