[fix][typo]
authorJoshuaJan <popkar77@gmail.com>
Thu, 19 Dec 2013 15:00:42 +0000 (23:00 +0800)
committerJoshuaJan <popkar77@gmail.com>
Thu, 19 Dec 2013 15:00:42 +0000 (23:00 +0800)
bzr revid: popkar77@gmail.com-20131219150042-7yyfrpb5m2vsy2be

addons/payment_acquirer_paypal/models/paypal.py

index 8a9fac7..32e1771 100644 (file)
@@ -213,7 +213,7 @@ class TxPaypal(osv.Model):
             return tx.write(data)
         elif status in ['Pending', 'Expired']:
             _logger.info('Received notification for Paypal payment %s: set as pending' % (tx.reference))
-            data.udpate(state='pending', state_message=data.get('pending_reason', ''))
+            data.update(state='pending', state_message=data.get('pending_reason', ''))
             return tx.write(data)
         else:
             error = 'Received unrecognized status for Paypal payment %s: %s, set as error' % (tx.reference, status)