From 81e891f34ee9a43d093d009fb3835516cfb43167 Mon Sep 17 00:00:00 2001 From: "Foram Katharotiya (OpenERP)" Date: Tue, 20 Nov 2012 13:03:50 +0530 Subject: [PATCH] [IMP] add subtype in purchase bzr revid: fka@tinyerp.com-20121120073350-i79t54g8p7pqzk05 --- addons/purchase/purchase.py | 2 +- addons/purchase/purchase_data.xml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 5bb38316604..8936d622507 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -787,7 +787,7 @@ class purchase_order(osv.osv): def confirm_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=_("Quotation for %s converted to a Purchase Order of %s %s.") % (obj.partner_id.name, obj.amount_total, obj.pricelist_id.currency_id.symbol), context=context) + self.message_post(cr, uid, [obj.id], body=_("Quotation for %s converted to a Purchase Order of %s %s.") % (obj.partner_id.name, obj.amount_total, obj.pricelist_id.currency_id.symbol), subtype="purchase.mt_rfq_confirmed", context=context) def shipment_send_note(self, cr, uid, ids, picking_id, context=None): for order in self.browse(cr, uid, ids, context=context): diff --git a/addons/purchase/purchase_data.xml b/addons/purchase/purchase_data.xml index fa701c1f179..7a56e0dc95f 100644 --- a/addons/purchase/purchase_data.xml +++ b/addons/purchase/purchase_data.xml @@ -49,5 +49,16 @@ model="ir.values" name="set"/> + + RFQ Confirmed + purchase.order + + + + + RFQ Approved + purchase.order + +