summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-08-01 10:05:56 +0200
committerDenis Ledoux <dle@odoo.com>2014-08-01 10:05:56 +0200
commita9bce700dc5f566df69e393c9e0ab4641e5ee0c3 (patch)
tree6c488213647312e9df29fd35dc2e3875adbd1653
parent939076737673f67bad81c5ca886404e87dbaf3d4 (diff)
[FIX] account: avoid to propagate context in send by email button
There is no reason to propagate the context in those buttons. Besides, it leads to issues concerning the email template, rendering the wrong res_id because the active_id was wrongly propagated
-rw-r--r--addons/account/account_invoice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py
index d0dc2ec8b42..8b5f15ff04c 100644
--- a/addons/account/account_invoice.py
+++ b/addons/account/account_invoice.py
@@ -426,7 +426,7 @@ class account_invoice(osv.osv):
compose_form_id = ir_model_data.get_object_reference(cr, uid, 'mail', 'email_compose_message_wizard_form')[1]
except ValueError:
compose_form_id = False
- ctx = dict(context)
+ ctx = dict()
ctx.update({
'default_model': 'account.invoice',
'default_res_id': ids[0],