From dfead5d132c75536472d82c82963d5c127f2b479 Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Fri, 31 Jan 2014 15:45:54 +0100 Subject: [PATCH] [imp] create a new context, as suggested by Guewen --- analytic_hours_block/hours_block.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/analytic_hours_block/hours_block.py b/analytic_hours_block/hours_block.py index 064edca5..85415a25 100644 --- a/analytic_hours_block/hours_block.py +++ b/analytic_hours_block/hours_block.py @@ -186,14 +186,13 @@ class AccountHoursBlock(orm.Model): except ValueError: compose_form_id = False - ctx = context.copy() - ctx.update({ + ctx = { 'default_model': self._name, 'default_res_id': ids[0], 'default_use_template': bool(template_id), 'default_template_id': template_id, 'default_composition_mode': 'comment', - }) + } return { 'type': 'ir.actions.act_window', 'view_type': 'form',