[FIX] payment_buckaroo: copy values dict to avoid altering original dict

_buckaroo_generate_digital_sign uses the values dict to generate the shasign
At some point, it alters the dict, it removes BRQ_SIGNATURE, but, as the values dict was not copied, it altered the original dict.
So, the key BRQ_SIGNATURE was not anymore present for methods called after _buckaroo_generate_digital_sign.
For instance, the overriden method form_feedback of website_sale payment
This commit is contained in:
Denis Ledoux 2014-12-19 17:47:04 +01:00
parent c0dce6ac1e
commit 11f52c9ee8
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ class AcquirerBuckaroo(osv.Model):
return values[key]
return ''
values = dict(values or {})
if inout == 'out':
if 'BRQ_SIGNATURE' in values:
del values['BRQ_SIGNATURE']