[IMP] improve code

bzr revid: fka@tinyerp.com-20120831105422-m2unzh8mezt4oan4
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-08-31 16:24:22 +05:30
parent 4bc80c319e
commit d621d8fae3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1398,7 +1398,7 @@ class stock_picking(osv.osv):
def ship_cancel_send_note(self, cr, uid, ids, context=None):
for obj in self.browse(cr, uid, ids, context=context):
self.message_post(cr, uid, [obj.id], body=_("%s has been <b>cancelled</b>.") % (self._get_document_type(obj.type)), subtype="cancel", context=context)
self.message_post(cr, uid, [obj.id], body=_("%s has been <b>cancelled</b>.") % (self._get_document_type(obj.type)), subtype="cancelled", context=context)
stock_picking()
+1 -1
View File
@@ -181,7 +181,7 @@ watch your stock valuation, and track production lots upstream and downstream (b
<field name="name">close</field>
<field name="model_ids" eval="[(4,ref('stock.model_stock_picking'))]"/>
</record>
<record id="mail.mail_subtype_cancel" model="mail.message.subtype">
<record id="mail.mail_subtype_cancelled" model="mail.message.subtype">
<field name="model_ids" eval="[(4,ref('stock.model_stock_picking'))]"/>
</record>
<record id="mail.mail_subtype_email" model="mail.message.subtype">