[IMP] improve code
bzr revid: fka@tinyerp.com-20120831105422-m2unzh8mezt4oan4
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user