<odoo>
  <data>

 <record model="ir.ui.view" id="questionnaire_list">
      <field name="name">booking_questionnaire list</field>
      <field name="model">booking.questionnaire</field>
      <field name="arch" type="xml">
        <tree>
          <field name="name"/>
          <field name="description"/>
          
        </tree>
      </field>
    </record>

    <record model="ir.ui.view" id="questionnaire_form" >
      <field name="name">booking_questionnaire Form</field>
      <field name="model">booking.questionnaire</field>
      <field name="arch" type="xml">
          <form string="questionnaire_form" delete="0" create="0">
          <sheet>
            <group name="questionnaire">
              <field name="name"/>
              <field name="description"/>
              
            </group>
            <group name="questions">
             <field name="question_ids">
			    <tree editable="bottom">
                <field name="sequence" widget="handle"/>
			    <field name="question"/>
			    </tree>
		    </field>
              
            </group>

          </sheet>
          </form>
      </field>
  </record>


<record model="ir.actions.act_window" id="questionnaire_action">
      <field name="name">questionnaire</field>
      <field name="res_model">booking.questionnaire</field>
      <field name="view_mode">tree,form</field>
    </record>

<menuitem name="questionnaire"
        id="menu_event_questionnaire"
        sequence="10"
        parent="event.event_main_menu"
        action="questionnaire_action"
        groups="event.group_event_user"/>

    </data>
</odoo>