Hello,
I am trying to display two form view of differernt model on same window.example one form is survey_form of survey.survey and second form is survey_page_form of survey.page
In survey model tree view of survey_page_form is display in survey_form as following:
<field name="page_ids" mode="tree" context="{'default_survey_id': active_id}" nolabel="1">
<tree>
<field name="sequence" widget="handle"/>
<field name="title"/>
<field name="question_ids"/>
</tree>
</field>
page_ids is one2many field in survey.survey
My purpose instead of showing tree view I want to display form view. So that I have created other <div> out side <sheet> and trying to display form view for that I have created following code.
<div>
<field name="page_ids" mode="form" context="{'default_survey_id': active_id}">
<form>
<sheet>
<field name="title"/>
<field name="question_ids"/>
</sheet>
</form>
</field>
</div>
But it gives me following error:
Uncaught TypeError: Renderer is not a constructor
http://localhost:8079/web/content/696-db11a4b/web.assets_backend.js:1233
Traceback:
TypeError: Renderer is not a constructor
at Class._render (http://localhost:8079/web/content/696-db11a4b/web.assets_backend.js:1233:94)
at Class.prototype.<computed> [as _render] (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:3538:488)
at http://localhost:8079/web/content/696-db11a4b/web.assets_backend.js:1049:1521
at http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:802:681
at fire (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:796:299)
at Object.add [as done] (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:797:467)
at Array.<anonymous> (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:802:649)
at Function.each (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:625:767)
at Object.<anonymous> (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:802:560)
at Function.Deferred (http://localhost:8079/web/content/469-b5fa945/web.assets_common.js:803:194)
Please help me.
Thanks in advance