c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #10432
[Bug 696268] Re: On the editable tree view the many to one field cannot open the resource that has been set
Done a quick hack/fix - not sure if 100% but seems to work for what I
need
On widgets/form/templates/many2one.mako
replace
${self.display_open_resource(name)}
<div id="autoCompleteResults_${name}" class="autoTextResults"></div>
<script type="text/javascript">
new ManyToOne('${name}');
</script>
with
<span id="${name}" name="${name}" ${py.attrs(kind=kind, value=value, relation=relation, context=ctx, domain=domain, link=link)}>
<a style="color:#9A0404;" href="javascript: void(0)" onclick="new ManyToOne('${name}').open_record('${value}')">${self.display_open_resource(name)}</a>
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/696268
Title:
On the editable tree view the many to one field cannot open the resource that has been set
Status in OpenObject Web Client:
New
Bug description:
If field is empty it allow you to search for a resource in the editable tree view. However when it is set it cannot open the resource. in the corresponding form view a pop up comes up with open resource/set as default/set to default. The editable treeview should have the same functionality.
References