From bdcd825c72327573702b53e4e0a35a25f76600f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 1 Jun 2012 16:59:24 +0200 Subject: [PATCH] [FIX] procurement: fixed a context not present in a method. bzr revid: tde@openerp.com-20120601145924-r9rkl58ohv4wdjyu --- addons/procurement/procurement.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index 8b82f71edad..db313e65353 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -289,14 +289,14 @@ class procurement_order(osv.osv): return False if not procurement.product_id.seller_ids: message = _('No supplier defined for this product !') - self.message_append_note(cr, uid, [procurement.id], body=message, context=context) + self.message_append_note(cr, uid, [procurement.id], body=message) cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id)) return False partner = procurement.product_id.seller_id #Taken Main Supplier of Product of Procurement. if not partner: message = _('No default supplier defined for this product') - self.message_append_note(cr, uid, [procurement.id], body=message, context=context) + self.message_append_note(cr, uid, [procurement.id], body=message) cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id)) return False if user.company_id and user.company_id.partner_id: @@ -306,7 +306,7 @@ class procurement_order(osv.osv): address_id = partner_obj.address_get(cr, uid, [partner.id], ['delivery'])['delivery'] if not address_id: message = _('No address defined for the supplier') - self.message_append_note(cr, uid, [procurement.id], body=message, context=context) + self.message_append_note(cr, uid, [procurement.id], body=message) cr.execute('update procurement_order set message=%s where id=%s', (message, procurement.id)) return False return True