[IMP] stock_location: call running_send_note
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Thu, 3 May 2012 05:14:47 +0000 (10:44 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Thu, 3 May 2012 05:14:47 +0000 (10:44 +0530)
bzr revid: tpa@tinyerp.com-20120503051447-2tkh9vn0twnz8ndk

addons/stock_location/procurement_pull.py

index 33168a5..97ccb3e 100644 (file)
@@ -116,6 +116,7 @@ class procurement_order(osv.osv):
                 move_obj.write(cr, uid, [proc.move_id.id],
                     {'location_id':proc.location_id.id})
             self.write(cr, uid, [proc.id], {'state':'running', 'message':_('Pulled from another location via procurement %d')%proc_id})
+            self.running_send_note(cr, uid, ids, context=None)
 
             # trigger direct processing (the new procurement shares the same planned date as the original one, which is already being processed)
             wf_service.trg_validate(uid, 'procurement.order', proc_id, 'button_check', cr)