From 7210b2ee42bb1fb6ff24ce60b84df0f1fdf4f61a Mon Sep 17 00:00:00 2001 From: "Bhumi Thakkar (Open ERP)" Date: Thu, 7 Feb 2013 17:22:05 +0530 Subject: [PATCH] [IMP] Improve code. bzr revid: bth@tinyerp.com-20130207115205-1j46xhbs85i8q6w4 --- addons/sale/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 3e719ca81ef..45012dde9ca 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -1010,7 +1010,7 @@ class stock_picking(osv.Model): def action_done(self, cr, uid, ids, context=None): res = super(stock_picking, self).action_done(cr, uid, ids, context=None) for stockpicking in self.browse(cr, uid, ids, context): - if stockpicking.sale_id.id: + if stockpicking.sale_id: for sale in self.pool.get('sale.order').browse(cr, uid, [stockpicking.sale_id.id], context): sale.message_post(body=_("%s Delivered") % (sale._description)) return True