Commit 86aaa35b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use edit rather than generating a new context for mapped value, otherwise...

Use edit rather than generating a new context for mapped value, otherwise properties must be pre-defined in Supply Cell, as unknown properties are ignored by getProperty. This is not quite convenient when the user extends other types of paths (e.g. Sale Supply Line). Using edit makes all unknown properties local properties, thus getProperty works.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26182 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6136d39e
......@@ -255,7 +255,7 @@ class DomainTool(BaseTool):
if value is not None:
mapped_value_property_dict[mapped_value_property] = value
# Update mapped value
mapped_value = mapped_value.asContext(**mapped_value_property_dict)
mapped_value.edit(**mapped_value_property_dict)
return mapped_value
# XXX FIXME method should not be public
......@@ -312,7 +312,7 @@ class DomainTool(BaseTool):
if explanation_only:
return explanation_dict
# Update mapped value
mapped_value = mapped_value.asContext(**mapped_value_property_dict)
mapped_value.edit(**mapped_value_property_dict)
return mapped_value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment