From f8e78b68c664c9547e4e2cd32d97aacf4c5e40fc Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Fri, 15 Feb 2013 16:51:17 +0530 Subject: [PATCH] [IMP] Removed little bit code for concating the message_post. bzr revid: psa@tinyerp.com-20130215112117-v6jwvl2p6f2goczz --- addons/purchase/purchase.py | 3 +-- addons/purchase/purchase_data.xml | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index a6a5f3e..ec4fc5c 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -163,7 +163,6 @@ class purchase_order(osv.osv): 'state': { 'purchase.mt_rfq_confirmed': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'confirmed', 'purchase.mt_rfq_approved': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'approved', - 'purchase.mt_rfq_invoice_paid': lambda self, cr, uid, obj, ctx=None: obj['state'] == 'done', }, } _columns = { @@ -1192,7 +1191,7 @@ class mail_compose_message(osv.Model): class account_invoice(osv.Model): _inherit = 'account.invoice' - + def invoice_validate(self, cr, uid, ids, context=None): po_ids = self.pool.get('purchase.order').search(cr,uid,[('invoice_ids','in',ids)],context) res = super(account_invoice, self).invoice_validate(cr, uid, ids, context=None) diff --git a/addons/purchase/purchase_data.xml b/addons/purchase/purchase_data.xml index a08e221..ceb43ba 100644 --- a/addons/purchase/purchase_data.xml +++ b/addons/purchase/purchase_data.xml @@ -60,10 +60,6 @@ purchase.order - - Invoice Paid - - purchase.order - + -- 1.7.10.4