From ccf298b1ab1c5d731186b5dbe880a2dc0de392cb Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Tue, 13 Mar 2012 17:36:27 +0530 Subject: [PATCH] [FIX] remove uppercase letters from notification messages. bzr revid: bth@tinyerp.com-20120313120627-61a1akces0f2jicv --- addons/mrp/mrp.py | 4 ++-- addons/mrp_operations/mrp_operations.py | 10 +++++----- addons/product/product.py | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index db3ba062e09..672c0b13d48 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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 Created for %s product.") % (prod.id.name_template), type='notification', context=context) + _("Bill of Material has been created for %s 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 Created.")) + obj.message_append_note('',_("Manufacturing order has been created.")) return True def case_cancel_send_note(self, cr, uid, ids, context=None): diff --git a/addons/mrp_operations/mrp_operations.py b/addons/mrp_operations/mrp_operations.py index 7cbce203b29..b3fc572450a 100644 --- a/addons/mrp_operations/mrp_operations.py +++ b/addons/mrp_operations/mrp_operations.py @@ -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 created for %s production order.") % (prod.id.name) + message = _("Work order has been created for %s 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 started for %s production order.") % (prod.id.name) + message = _("Work order has been started for %s 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 done for %s production order.") % (prod.id.name) + message = _("Work order has been done for %s 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 pending for %s production order.") % (prod.id.name) + message = _("Work order is pending for %s 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 cancelled for %s production order.") % (prod.id.name) + message = _("Work order has been cancelled for %s production order.") % (prod.id.name) self.message_append_note(cr, uid, ids, '', message) return True diff --git a/addons/product/product.py b/addons/product/product.py index c67fbf974c5..d97e602ef7c 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -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 Created."), type='notification', context=context) + _("Product has been created."), type='notification', context=context) return True def unlink(self, cr, uid, ids, context=None):