parent
3b5d0cec6d
commit
e202e6d3d8
|
@ -227,16 +227,6 @@ class procurement_order(osv.osv):
|
|||
return True
|
||||
return False
|
||||
|
||||
def check_produce_service(self, cr, uid, procurement, context=[]):
|
||||
""" Checks project_mrp install or not.
|
||||
@return: True or False"""
|
||||
obj_module = self.pool.get('ir.module.module')
|
||||
module_id = obj_module.search(cr, uid, [('name', '=', 'project_mrp'),('state', '=', 'installed')])
|
||||
if module_id:
|
||||
return True
|
||||
cr.execute('update procurement_order set message=%s where id=%s', (_('Project_mrp module not installed !'), procurement.id))
|
||||
return False
|
||||
|
||||
def check_produce_product(self, cr, uid, procurement, context=[]):
|
||||
""" Finds BoM of a product if not found writes exception message.
|
||||
@param procurement: Current procurement.
|
||||
|
|
|
@ -64,6 +64,7 @@ class procurement_order(osv.osv):
|
|||
report_total = 0
|
||||
report_except = 0
|
||||
report_later = 0
|
||||
allids = self.search(cr, uid, [])
|
||||
while True:
|
||||
cr.execute('select id from procurement_order where state=%s and procure_method=%s order by priority,date_planned limit 500 offset %s', ('confirmed', 'make_to_order', offset))
|
||||
ids = map(lambda x: x[0], cr.fetchall())
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
-
|
||||
!function {model: procurement.order, name: run_scheduler}:
|
||||
- model: procurement.order
|
||||
search: "[('state','=','confirmed')]"
|
||||
search: "[]"
|
||||
-
|
||||
Now I check that one task is created for my sale order.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue