[FIX] remove uppercase letters from notification messages.
bzr revid: bth@tinyerp.com-20120313120627-61a1akces0f2jicv
This commit is contained in:
+2
-2
@@ -369,7 +369,7 @@ class mrp_bom(osv.osv):
|
||||
for obj in self.browse(cr, uid, ids, context=context):
|
||||
for prod in prod_obj.browse(cr, uid, [obj.product_id], context=context):
|
||||
self.message_append_note(cr, uid, ids, _('System notification'),
|
||||
_("Bill of Material has been <b>Created</b> for <em>%s</em> product.") % (prod.id.name_template), type='notification', context=context)
|
||||
_("Bill of Material has been <b>created</b> for <em>%s</em> product.") % (prod.id.name_template), type='notification', context=context)
|
||||
return True
|
||||
|
||||
mrp_bom()
|
||||
@@ -535,7 +535,7 @@ class mrp_production(osv.osv):
|
||||
for obj in self.browse(cr, uid, ids, context=context):
|
||||
if obj.user_id.id :
|
||||
self.message_subscribe(cr, uid, ids, [obj.user_id.id], context=context)
|
||||
obj.message_append_note('',_("Manufacturing Order has been <b>Created</b>."))
|
||||
obj.message_append_note('',_("Manufacturing order has been <b>created</b>."))
|
||||
return True
|
||||
|
||||
def case_cancel_send_note(self, cr, uid, ids, context=None):
|
||||
|
||||
@@ -160,7 +160,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||
prod_obj = self.pool.get('mrp.production')
|
||||
for workorder in self.browse(cr, uid, ids):
|
||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||
message = _("Work Order has been <b>created</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
message = _("Work order has been <b>created</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
self.message_append_note(cr, uid, ids, '', message)
|
||||
return True
|
||||
|
||||
@@ -168,7 +168,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||
prod_obj = self.pool.get('mrp.production')
|
||||
for workorder in self.browse(cr, uid, ids):
|
||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||
message = _("Work Order has been <b>started</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
message = _("Work order has been <b>started</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
self.message_append_note(cr, uid, ids, '', message)
|
||||
return True
|
||||
|
||||
@@ -176,7 +176,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||
prod_obj = self.pool.get('mrp.production')
|
||||
for workorder in self.browse(cr, uid, ids):
|
||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||
message = _("Work Order has been <b>done</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
message = _("Work order has been <b>done</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
self.message_append_note(cr, uid, ids, '', message)
|
||||
return True
|
||||
|
||||
@@ -184,7 +184,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||
prod_obj = self.pool.get('mrp.production')
|
||||
for workorder in self.browse(cr, uid, ids):
|
||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||
message = _("Work Order is <b>pending</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
message = _("Work order is <b>pending</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
self.message_append_note(cr, uid, ids, '', message)
|
||||
return True
|
||||
|
||||
@@ -192,7 +192,7 @@ class mrp_production_workcenter_line(osv.osv):
|
||||
prod_obj = self.pool.get('mrp.production')
|
||||
for workorder in self.browse(cr, uid, ids):
|
||||
for prod in prod_obj.browse(cr, uid, [workorder.production_id]):
|
||||
message = _("Work Order has been <b>cancelled</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
message = _("Work order has been <b>cancelled</b> for <em>%s</em> production order.") % (prod.id.name)
|
||||
self.message_append_note(cr, uid, ids, '', message)
|
||||
return True
|
||||
|
||||
|
||||
@@ -536,7 +536,7 @@ class product_product(osv.osv):
|
||||
def case_create_send_note(self, cr, uid, ids, context=None):
|
||||
for obj in self.browse(cr, uid, ids, context=context):
|
||||
self.message_append_note(cr, uid, ids, _('System notification'),
|
||||
_("Product has been <b>Created</b>."), type='notification', context=context)
|
||||
_("Product has been <b>created</b>."), type='notification', context=context)
|
||||
return True
|
||||
|
||||
def unlink(self, cr, uid, ids, context=None):
|
||||
|
||||
Reference in New Issue
Block a user