summaryrefslogtreecommitdiff
path: root/addons/document/nodes.py
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2010-07-13 13:30:30 +0300
committerP. Christeas <p_christ@hol.gr>2010-07-13 13:30:30 +0300
commita7eaf3bfc955fee567f858f570a09eaadf38ee1b (patch)
treeec18809abeb33350fa2ca222b9339a5f9e2bcd42 /addons/document/nodes.py
parent990cdf4c94b69e41b6ef5eaca5c5ed13d143d18d (diff)
Document: fix the context logic of content nodes
Content nodes should have meaningful context and perhaps an active id 'act_id', which will be used in the report or other generation fn(). The dctx mechanism of nodes was built for that, use it. bzr revid: p_christ@hol.gr-20100713103030-irueg85zizlp42ju
Diffstat (limited to 'addons/document/nodes.py')
-rw-r--r--addons/document/nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/document/nodes.py b/addons/document/nodes.py
index 0def3995d91..58d830a169a 100644
--- a/addons/document/nodes.py
+++ b/addons/document/nodes.py
@@ -782,7 +782,7 @@ class node_res_obj(node_class):
self.res_find_all = parent.res_find_all
if res_bo:
self.res_id = res_bo.id
- dc2 = self.context.context
+ dc2 = self.context.context.copy()
dc2.update(self.dctx)
dc2['res_model'] = res_model
dc2['res_id'] = res_bo.id