+ # ----------------------------------------
+ # OpenChatter methods and notifications
+ # ----------------------------------------
+
+ def create(self, cr, uid, vals, context=None):
+ obj_id = super(procurement_order, self).create(cr, uid, vals, context)
+ self.create_send_note(cr, uid, [obj_id], context=context)
+ return obj_id
+
+ def create_send_note(self, cr, uid, ids, context=None):
+ self.message_post(cr, uid, ids, body=_("Procurement <b>created</b>."), context=context)
+
+ def confirm_send_note(self, cr, uid, ids, context=None):
+ self.message_post(cr, uid, ids, body=_("Procurement <b>confirmed</b>."), context=context)
+
+ def cancel_send_note(self, cr, uid, ids, context=None):
+ self.message_post(cr, uid, ids, body=_("Procurement <b>cancelled</b>."), context=context)
+
+ def done_send_note(self, cr, uid, ids, context=None):
+ self.message_post(cr, uid, ids, body=_("Procurement <b>done</b>."), context=context)
+