[MERGE]:purchase

bzr revid: apa@tinyerp.com-20121121085232-8lqxm23hrzd323zp
This commit is contained in:
Amit Patel
2012-11-21 14:22:32 +05:30
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -790,7 +790,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 <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):
+11
View File
@@ -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>