This question has been flagged

Hello, 

I am creating dashboard in that I want show form view. the code for dashboard is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Action for survey-->
<record model="ir.actions.act_window" id="survey_create_action">
<field name="name">survey.create</field>
<field name="res_model">survey.survey</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="survey.survey_form"/>

</record>


<!-- board form view -->
<record model="ir.ui.view" id="board_form" >
<field name="name">Surveys</field>
<field name="model">board.board</field>
<field name="arch" type="xml">
<form string="survey_page_questions">
<h1>Survey</h1>
<hpaned>
<child1>
<action string="Survey" name="%(survey_create_action)d"/>
</child1>
</hpaned>
</form>
</field>
</record>

<record model="ir.actions.act_window" id="board_action">
<field name="name">survey.action</field>
<field name="res_model">board.board</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="usage">menu</field>
<field name="view_id" ref="board_form"/>
</record>

<menuitem id="survey_menu" name="Survey" />
<menuitem id="survey_menu_form" name="survey" parent="survey_menu" action="board_action"/>

</odoo>


after loading survey menu nothing will display.But same thing work in odoo v10.

 why this is happen? any help is appreciated.thanks


--EDIT--

In form view after replacing 

<hpaned>
<child1>
<action string="Survey" name="%(survey_create_action)d"/>
</child1>
</hpaned>

with


<board>
<h2>Survey</h2>
<column>
<action string="Survey Create" name="%(action_survey_create)d"/>
<!-- <action name="%(survey_inherit.action_survey_create)d" string="survey"/>-->
</column>
</board>

I am facing following error


Uncaught TypeError: Cannot set property 'id' of undefined
http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:2488
Traceback:
TypeError: Cannot set property 'id' of undefined
    at http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:2488:120
    at Function._.each._.forEach (http://localhost:8079/web/content/383-099e622/web.assets_common.js:12:558)
    at http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:2488:54
    at Function._.each._.forEach (http://localhost:8079/web/content/383-099e622/web.assets_common.js:12:558)
    at Class._renderTagBoard (http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:2488:3)
    at Class._renderNode [as _super] (http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:1644:246)
    at Class._renderNode (http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:2869:50)
    at Class._renderNode (http://localhost:8079/web/content/383-099e622/web.assets_common.js:3541:371)
    at Function._.map._.collect (http://localhost:8079/web/content/383-099e622/web.assets_common.js:13:270)
    at Class._renderTagForm (http://localhost:8079/web/content/384-7c6c9e6/web.assets_backend.js:1652:18)



Why this error happen? 
Avatar
Discard