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()
<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">