[IMP]change in mrp
bzr revid: sgo@tinyerp.com-20120913094209-4r0laz8gtmcz1tsq
This commit is contained in:
parent
e6eafcaf22
commit
53a67e0652
|
@ -224,7 +224,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||||
for workorder in self.browse(cr, uid, ids):
|
for workorder in self.browse(cr, uid, ids):
|
||||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||||
message = _("Work order has been <b>created</b> for production order <em>%s</em>.") % (prod.id.name)
|
message = _("Work order has been <b>created</b> for production order <em>%s</em>.") % (prod.id.name)
|
||||||
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="new", context=context)
|
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="mrp_operations_subtype_new", context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def action_start_send_note(self, cr, uid, ids, context=None):
|
def action_start_send_note(self, cr, uid, ids, context=None):
|
||||||
|
@ -232,7 +232,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||||
for workorder in self.browse(cr, uid, ids):
|
for workorder in self.browse(cr, uid, ids):
|
||||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||||
message = _("Work order has been <b>started</b> for production order <em>%s</em>.") % (prod.id.name)
|
message = _("Work order has been <b>started</b> for production order <em>%s</em>.") % (prod.id.name)
|
||||||
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="started", context=context)
|
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="mrp_operations_subtype_started", context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def action_done_send_note(self, cr, uid, ids, context=None):
|
def action_done_send_note(self, cr, uid, ids, context=None):
|
||||||
|
@ -240,7 +240,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||||
for workorder in self.browse(cr, uid, ids):
|
for workorder in self.browse(cr, uid, ids):
|
||||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||||
message = _("Work order has been <b>done</b> for production order <em>%s</em>.") % (prod.id.name)
|
message = _("Work order has been <b>done</b> for production order <em>%s</em>.") % (prod.id.name)
|
||||||
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="closed", context=context)
|
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="mrp_operations_subtype_closed", context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def action_pending_send_note(self, cr, uid, ids, context=None):
|
def action_pending_send_note(self, cr, uid, ids, context=None):
|
||||||
|
@ -248,7 +248,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||||
for workorder in self.browse(cr, uid, ids):
|
for workorder in self.browse(cr, uid, ids):
|
||||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||||
message = _("Work order is <b>pending</b> for production order <em>%s</em>.") % (prod.id.name)
|
message = _("Work order is <b>pending</b> for production order <em>%s</em>.") % (prod.id.name)
|
||||||
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="pending", context=context)
|
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="mrp_operations_subtype_pending", context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def action_cancel_send_note(self, cr, uid, ids, context=None):
|
def action_cancel_send_note(self, cr, uid, ids, context=None):
|
||||||
|
@ -256,7 +256,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||||
for workorder in self.browse(cr, uid, ids):
|
for workorder in self.browse(cr, uid, ids):
|
||||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||||
message = _("Work order has been <b>cancelled</b> for production order <em>%s</em>.") % (prod.id.name)
|
message = _("Work order has been <b>cancelled</b> for production order <em>%s</em>.") % (prod.id.name)
|
||||||
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="cancelled", context=context)
|
self.message_post(cr, uid, [workorder.id], body=message, subtype_xml_id="mrp_operations_subtype_cancelled", context=context)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
mrp_production_workcenter_line()
|
mrp_production_workcenter_line()
|
||||||
|
|
Loading…
Reference in New Issue