[IMP] Remove bold and capital in first letter.

bzr revid: bth@tinyerp.com-20130220054249-4n3zpwvo767u6h4l
This commit is contained in:
Bhumi Thakkar (Open ERP) 2013-02-20 11:12:49 +05:30
parent 158700e2b0
commit 69fcf7bb62
8 changed files with 13 additions and 13 deletions

View File

@ -1760,7 +1760,7 @@ class mail_compose_message(osv.Model):
self.pool.get('account.invoice').write(cr, uid, [context['default_res_id']], {'sent': True}, context=context)
if context.get('active_model') == "sale.order":
for sale in self.pool.get(context.get('active_model')).browse(cr, uid, [context.get('active_id')], context):
sale.message_post(body=_("Invoice <b>Sent</b>"))
sale.message_post(body=_("Invoice sent"))
return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -773,7 +773,7 @@ class mrp_production(osv.osv):
new_parent_ids.append(final_product.id)
for new_parent_id in new_parent_ids:
stock_mov_obj.write(cr, uid, [raw_product.id], {'move_history_ids': [(4,new_parent_id)]})
self.message_post(cr, uid, production_id, body=_("%s <b>Produced</b>") % self._description, context=context)
self.message_post(cr, uid, production_id, body=_("%s produced") % self._description, context=context)
self.signal_button_produce_done(cr, uid, [production_id])
return True

View File

@ -252,7 +252,7 @@ class purchase_order(osv.osv):
context = {}
context.update({ 'mail_create_nolog' : True })
order = super(purchase_order, self).create(cr, uid, vals, context=context)
self.message_post(cr, uid, [order], body=_("RFQ <b>Created</b>"), context=context)
self.message_post(cr, uid, [order], body=_("RFQ created"), context=context)
return order
def unlink(self, cr, uid, ids, context=None):
@ -678,7 +678,7 @@ class purchase_order(osv.osv):
def picking_done(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'shipped':1,'state':'approved'}, context=context)
self.message_post(cr, uid, ids, body=_("Products <b>Received.</b>"), context=context)
self.message_post(cr, uid, ids, body=_("Products received"), context=context)
return True
def copy(self, cr, uid, id, default=None, context=None):
@ -798,7 +798,7 @@ class purchase_order(osv.osv):
context = {}
context.update({ 'mail_create_nolog' : True })
neworder_id = self.create(cr, uid, order_data)
self.message_post(cr, uid, [neworder_id], body=_("RFQ <b>Created</b>"), context=context)
self.message_post(cr, uid, [neworder_id], body=_("RFQ created"), context=context)
orders_info.update({neworder_id: old_ids})
allorders.append(neworder_id)
@ -1203,13 +1203,13 @@ class account_invoice(osv.Model):
def invoice_validate(self, cr, uid, ids, context=None):
po_ids = self.pool.get('purchase.order').search(cr,uid,[('invoice_ids','in',ids)],context)
res = super(account_invoice, self).invoice_validate(cr, uid, ids, context=None)
self.pool.get('purchase.order').message_post(cr, uid, po_ids, body=_("Invoice <b>Received.</b>"), context=context)
self.pool.get('purchase.order').message_post(cr, uid, po_ids, body=_("Invoice received"), context=context)
return res
def confirm_paid(self, cr, uid, ids, context=None):
po_ids = self.pool.get('purchase.order').search(cr,uid,[('invoice_ids','in',ids)],context)
res = super(account_invoice, self).confirm_paid(cr, uid, ids, context=None)
self.pool.get('purchase.order').message_post(cr, uid, po_ids, body=_("Invoice <b>Paid</b>"), context=context)
self.pool.get('purchase.order').message_post(cr, uid, po_ids, body=_("Invoice paid"), context=context)
return res

View File

@ -61,7 +61,7 @@
<field name="res_model">purchase.order</field>
</record>
<record id="mt_rfq_done" model="mail.message.subtype">
<field name="name">Purchase Order Done</field>
<field name="name">Purchase Order done</field>
<field name="default" eval="False"/>
<field name="res_model">purchase.order</field>
</record>

View File

@ -146,7 +146,7 @@ class purchase_requisition(osv.osv):
'notes':requisition.description,
'warehouse_id':requisition.warehouse_id.id ,
})
purchase_order.message_post(cr, uid, [purchase_id], body=_("RFQ <b>Created</b>"), context=context)
purchase_order.message_post(cr, uid, [purchase_id], body=_("RFQ created"), context=context)
res[requisition.id] = purchase_id
for line in requisition.line_ids:
product = line.product_id

View File

@ -340,7 +340,7 @@ class sale_order(osv.osv):
vals['name'] = self.pool.get('ir.sequence').get(cr, uid, 'sale.order') or '/'
context = dict(context, mail_create_nolog=True)
res = super(sale_order, self).create(cr, uid, vals, context=context)
self.message_post(cr, uid, [res], body=_("Quotation <b>Created</b>"), context=context)
self.message_post(cr, uid, [res], body=_("Quotation created"), context=context)
return res
def button_dummy(self, cr, uid, ids, context=None):
@ -998,7 +998,7 @@ class account_invoice(osv.Model):
def confirm_paid(self, cr, uid, ids, context=None):
so_ids = self.pool.get('sale.order').search(cr,uid,[('invoice_ids','in',ids)],context)
res = super(account_invoice, self).confirm_paid(cr, uid, ids, context=None)
self.pool.get('sale.order').message_post(cr, uid, so_ids, body=_("Invoice <b>Paid</b>"), context=context)
self.pool.get('sale.order').message_post(cr, uid, so_ids, body=_("Invoice paid"), context=context)
return res
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -97,7 +97,7 @@ class sale_order_line_make_invoice(osv.osv_memory):
flag = True
data_sale = sales_order_obj.browse(cr, uid, line.order_id.id, context=context)
sales_order_obj.message_post(cr, uid, [order.id], body=_("Invoice <b>Created</b>"), context=context)
sales_order_obj.message_post(cr, uid, [order.id], body=_("Invoice created"), context=context)
for line in data_sale.order_line:
if not line.invoiced:
flag = False

View File

@ -52,7 +52,7 @@ class stock_picking(osv.osv):
for record in self.browse(cr, uid, ids, context):
if record.type == "out" and record.sale_id:
for sale in self.pool.get('sale.order').browse(cr, uid, [record.sale_id.id], context):
sale.message_post(body=_("Products <b>Delivered</b>"))
sale.message_post(body=_("Products delivered"))
return super(stock_picking, self).action_done(cr, uid, ids, context=context)
def get_currency_id(self, cursor, user, picking):