summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>2013-02-07 17:22:05 +0530
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>2013-02-07 17:22:05 +0530
commit7210b2ee42bb1fb6ff24ce60b84df0f1fdf4f61a (patch)
tree220b42e8703130caebaba670e1c83a8c857310b1
parentc097b3aa2aff6fc46e469f3b7821da300516867c (diff)
[IMP] Improve code.
bzr revid: bth@tinyerp.com-20130207115205-1j46xhbs85i8q6w4
-rw-r--r--addons/sale/sale.py2
1 files changed, 1 insertions, 1 deletions
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 <b>Delivered</b>") % (sale._description))
return True