[IMP] improve code
bzr revid: fka@tinyerp.com-20120831111115-fqoapz8uroxsdddm
This commit is contained in:
@@ -508,7 +508,7 @@ class procurement_order(osv.osv):
|
||||
self.message_post(cr, uid, ids, body=_("Procurement has been set to <b>ready</b>."), subtype="ready", context=context)
|
||||
|
||||
def cancel_send_note(self, cr, uid, ids, context=None):
|
||||
self.message_post(cr, uid, ids, body=_("Procurement has been <b>cancelled</b>."), subtype="cancel", context=context)
|
||||
self.message_post(cr, uid, ids, body=_("Procurement has been <b>cancelled</b>."), subtype="cancelled", context=context)
|
||||
|
||||
def done_send_note(self, cr, uid, ids, context=None):
|
||||
self.message_post(cr, uid, ids, body=_("Procurement has been <b>done</b>."), subtype="close", context=context)
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<field name="name">running</field>
|
||||
<field name="model_ids" eval="[(4,ref('procurement.model_procurement_order'))]"/>
|
||||
</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('procurement.model_procurement_order'))]"/>
|
||||
</record>
|
||||
<record id="mail.mail_subtype_close" model="mail.message.subtype">
|
||||
|
||||
Reference in New Issue
Block a user