From c1bacd0a25283776359bea9d3c2d09abec20e0e6 Mon Sep 17 00:00:00 2001 From: vrenaville Date: Mon, 1 Dec 2014 15:46:40 +0100 Subject: [PATCH] [FIX] copy the context before update it --- account_payment_multicurrency_extension/payment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/account_payment_multicurrency_extension/payment.py b/account_payment_multicurrency_extension/payment.py index 1407a4ccf..4174dd602 100644 --- a/account_payment_multicurrency_extension/payment.py +++ b/account_payment_multicurrency_extension/payment.py @@ -36,12 +36,13 @@ class payment_order_create(orm.TransientModel): """ if context is None: context = {} - context.update({'is_multi_currency': True}) + ctx = context.copy() + ctx.update({'is_multi_currency': True}) return super(payment_order_create, self).create_payment( cr, uid, ids, - context=context) + context=ctx) class payment_line(orm.Model):