Foram Katharotiya (OpenERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-subtype-purchase-fka into lp:openobject-addons.
Requested reviews: Amit Patel (OpenERP) (apa-tiny) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-subtype-purchase-fka/+merge/135076 Hello Sir, - Add subtype in purchase Thanks, FKA -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-subtype-purchase-fka/+merge/135076 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-subtype-purchase-fka.
=== modified file 'purchase/purchase.py' --- purchase/purchase.py 2012-11-15 12:38:51 +0000 +++ purchase/purchase.py 2012-11-20 07:39:35 +0000 @@ -787,7 +787,7 @@ 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 <em>%s</em> <b>converted</b> 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 <em>%s</em> <b>converted</b> 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): === modified file 'purchase/purchase_data.xml' --- purchase/purchase_data.xml 2012-11-14 11:55:04 +0000 +++ purchase/purchase_data.xml 2012-11-20 07:39:35 +0000 @@ -49,5 +49,16 @@ model="ir.values" name="set"/> + <record id="mt_rfq_confirmed" model="mail.message.subtype"> + <field name="name">RFQ Confirmed</field> + <field name="res_model">purchase.order</field> + <field name="default" eval="False"/> + </record> + + <record id="mt_rfq_approved" model="mail.message.subtype"> + <field name="name">RFQ Approved</field> + <field name="res_model">purchase.order</field> + <field name="default" eval="False"/> + </record> </data> </openerp>
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : openerp-dev-gtk@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp