survey_survey_views.xml 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="survey_survey_view_form" model="ir.ui.view">
  5. <field name="name">survey.survey.view.form</field>
  6. <field name="model">survey.survey</field>
  7. <field name="arch" type="xml">
  8. <form string="Survey" class="o_survey_form">
  9. <field name="id" invisible="1"/>
  10. <field name="session_state" invisible="1"/>
  11. <field name="question_ids" invisible="1"/>
  12. <header>
  13. <button name="action_send_survey" string="Share" type="object" class="oe_highlight" attrs="{'invisible': [('active', '=', False)]}"/>
  14. <button name="action_result_survey" string="See results" type="object" class="oe_highlight"
  15. attrs="{'invisible': [('answer_done_count', '&lt;=', 0)]}"/>
  16. <button name="action_start_session" string="Create Live Session" type="object" class="d-none d-sm-block"
  17. attrs="{'invisible': ['|', ('session_state', '!=', False), '|', ('active', '=', False), ('certification', '=', True)]}" />
  18. <button name="action_open_session_manager" string="Open Session Manager" type="object" class="d-none d-sm-block"
  19. attrs="{'invisible': [('session_state', '=', False)]}" />
  20. <button name="action_end_session" string="Close Live Session" type="object" class="d-none d-sm-block"
  21. attrs="{'invisible': [('session_state', 'not in', ['ready', 'in_progress'])]}" />
  22. <button name="action_test_survey" string="Test" type="object" attrs="{'invisible': ['|', ('active', '=', False), ('question_ids', '=', [])]}"/>
  23. <button name="action_unarchive" string="Reopen" class="btn-primary" type="object" attrs="{'invisible': [('active', '=', True)]}"/>
  24. <button name="action_print_survey" string="Print" type="object" attrs="{'invisible': [('active', '=', False)]}"/>
  25. <button name="action_archive" string="Close" type="object" attrs="{'invisible': [('active', '=', False)]}"/>
  26. </header>
  27. <sheet>
  28. <div class="oe_button_box" name="button_box">
  29. <button name="action_survey_user_input"
  30. type="object"
  31. class="oe_stat_button"
  32. attrs="{'invisible': [('access_mode', '=', 'public')]}"
  33. icon="fa-envelope-o">
  34. <field string="Registered" name="answer_count" widget="statinfo"/>
  35. </button>
  36. <button name="action_survey_user_input_certified"
  37. type="object"
  38. class="oe_stat_button"
  39. attrs="{'invisible': [('certification', '=', False)]}"
  40. icon="fa-trophy">
  41. <field string="Certified" name="success_count" widget="statinfo"/>
  42. </button>
  43. <button name="action_survey_user_input_completed"
  44. type="object"
  45. class="oe_stat_button"
  46. icon="fa-check-square-o">
  47. <field string="Participations" name="answer_done_count" widget="statinfo"/>
  48. </button>
  49. </div>
  50. <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
  51. <field name="background_image" widget="image" class="oe_avatar"/>
  52. <div class="oe_title" style="width: 100%;">
  53. <label for="title" class="oe_edit_only" string="Survey Title" attrs="{'invisible': [('certification', '=', True)]}"/>
  54. <label for="title" class="oe_edit_only" string="Certification Title" attrs="{'invisible': [('certification', '=', False)]}"/>
  55. <h1>
  56. <field name="title" placeholder="e.g. Satisfaction Survey"/>
  57. </h1>
  58. </div>
  59. <group>
  60. <group>
  61. <field name="user_id" domain="[('share', '=', False)]" widget="many2one_avatar_user"/>
  62. <field name="active" invisible="1"/>
  63. <field name="has_conditional_questions" invisible="1"/>
  64. </group>
  65. </group>
  66. <notebook>
  67. <page string="Questions" name="questions">
  68. <field name="question_and_page_ids" nolabel="1" widget="question_page_one2many" mode="tree,kanban" context="{'default_survey_id': active_id, 'default_questions_selection': questions_selection}">
  69. <tree decoration-bf="is_page">
  70. <field name="sequence" widget="handle"/>
  71. <field name="title" widget="survey_description_page"/>
  72. <field name="background_image" invisible="1"/>
  73. <field name="question_type" />
  74. <field name="is_page" invisible="1"/>
  75. <field name="questions_selection" invisible="1"/>
  76. <field name="survey_id" invisible="1"/>
  77. <field name="triggering_question_id" invisible="1"/>
  78. <field name="random_questions_count"
  79. attrs="{'column_invisible': [('parent.questions_selection', '=', 'all')], 'invisible': [('is_page', '=', False)]}"/>
  80. <button disabled="disabled" icon="fa-code-fork" attrs="{'invisible': [('triggering_question_id', '=', False)]}"
  81. title="This question depends on another question's answer." class="icon_rotates"/>
  82. <control>
  83. <create name="add_question_control" string="Add a question"/>
  84. <create name="add_section_control" string="Add a section" context="{'default_is_page': True, 'default_questions_selection': 'all'}"/>
  85. </control>
  86. </tree>
  87. </field>
  88. </page>
  89. <page string="Options" name="options">
  90. <group name="options">
  91. <group string="Questions" name="questions">
  92. <field name="questions_layout" widget="radio"
  93. attrs="{'readonly': [('session_state', 'in', ['ready', 'in_progress'])]}"/>
  94. <field name="progression_mode" widget="radio" attrs="{'invisible': [('questions_layout', '=', 'one_page')]}"/>
  95. <field name="questions_selection" widget="radio" />
  96. <field name="users_can_go_back" string="Back Button" attrs="{'invisible': [('questions_layout', '=', 'one_page')]}"/>
  97. </group>
  98. <group string="Participants" name="participants">
  99. <field name="access_mode"/>
  100. <field name="users_login_required"/>
  101. <label for="is_attempts_limited" string="Limit Attempts"
  102. attrs="{'invisible': ['|', ('has_conditional_questions', '=', True), '&amp;', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}"/>
  103. <div class="o_checkbox_optional_field"
  104. attrs="{'invisible': ['|', ('has_conditional_questions', '=', True), '&amp;', ('access_mode', '=', 'public'), ('users_login_required', '=', False)]}">
  105. <field name="is_attempts_limited" nolabel="1"/>
  106. <div attrs="{'invisible': [('is_attempts_limited', '=', False)]}">
  107. to <field name="attempts_limit" nolabel="1" class="oe_inline"/> attempts
  108. </div>
  109. </div>
  110. </group>
  111. <group string="Time &amp; Scoring" name="scoring">
  112. <label for="is_time_limited" string="Survey Time Limit"/>
  113. <div class="o_checkbox_optional_field">
  114. <field name="is_time_limited" nolabel="1"/>
  115. <div attrs="{'invisible': [('is_time_limited', '=', False)]}">
  116. <field name="time_limit" widget="float_time" nolabel="1" class="oe_inline"/> minutes
  117. </div>
  118. </div>
  119. <field name="scoring_type" widget="radio" />
  120. <field name="scoring_success_min" attrs="{'invisible': [('scoring_type', '=', 'no_scoring')]}" />
  121. <label for="certification"/>
  122. <div class="o_checkbox_optional_field">
  123. <field name="certification" nolabel="1"/>
  124. <div attrs="{'invisible': [('certification', '=', False)]}" class="w-100">
  125. <field name="certification_report_layout" placeholder="Pick a Style..." class="w-50"/>
  126. <button name="action_survey_preview_certification_template"
  127. string="Preview" type="object"
  128. icon="fa-external-link" target="_blank" class="btn-link pt-0"/>
  129. </div>
  130. </div>
  131. <field name="certification_mail_template_id"
  132. placeholder="Pick a Template..."
  133. attrs="{'invisible': [('certification', '=', False)]}"/>
  134. <label for="certification_give_badge"
  135. attrs="{'invisible': ['|', ('certification', '=', False), ('users_login_required', '=', False)]}"/>
  136. <div class="float-start o_checkbox_optional_field"
  137. attrs="{'invisible': ['|', ('certification', '=', False), ('users_login_required', '=', False)]}">
  138. <field name="certification_give_badge"/>
  139. <div attrs="{'invisible': [('certification_give_badge', '=', False)]}">
  140. <field name="certification_badge_id"
  141. placeholder="Pick a Badge..."
  142. attrs="{'invisible': ['|', ('certification_give_badge', '=', False), ('certification_badge_id', '!=', False)], 'required': [('certification_give_badge', '=', True)]}"
  143. domain="[('survey_id', '=', active_id), ('survey_id', '!=', False)]"
  144. context="{'default_name': title,
  145. 'default_description': 'Congratulations, you have succeeded this certification',
  146. 'default_rule_auth': 'nobody',
  147. 'default_level': None,
  148. 'form_view_ref': 'survey.gamification_badge_form_view_simplified'}"/>
  149. <field name="certification_badge_id_dummy" attrs="{'invisible': ['|', ('certification_give_badge', '=', False), ('certification_badge_id', '=', False)]}"
  150. placeholder="Pick a Badge..."
  151. options="{'no_create': True}"
  152. context="{'form_view_ref': 'survey.gamification_badge_form_view_simplified'}"/>
  153. </div>
  154. </div>
  155. </group>
  156. <group string="Live Session">
  157. <field name="session_code" />
  158. <field name="session_link" widget="CopyClipboardChar" />
  159. <field name="session_speed_rating" />
  160. </group>
  161. </group>
  162. </page>
  163. <page string="Description" name="description">
  164. <field name="description" placeholder="e.g. &quot;The following Survey will help us...&quot;" nolabel="1"></field>
  165. </page>
  166. <page string="End Message" name="description_done">
  167. <field name="description_done" placeholder="e.g. &quot;Thank you very much for your feedback!&quot;" nolabel="1"></field>
  168. </page>
  169. </notebook>
  170. </sheet>
  171. <div class="oe_chatter">
  172. <field name="message_follower_ids"/>
  173. <field name="activity_ids"/>
  174. <field name="message_ids"/>
  175. </div>
  176. </form>
  177. </field>
  178. </record>
  179. <record id="survey_survey_view_tree" model="ir.ui.view">
  180. <field name="name">survey.survey.view.tree</field>
  181. <field name="model">survey.survey</field>
  182. <field name="arch" type="xml">
  183. <tree string="Survey" js_class="survey_view_tree">
  184. <field name="active" invisible="1"/>
  185. <field name="certification" invisible="1"/>
  186. <field name="title"/>
  187. <button name="certification" type="button" disabled="disabled"
  188. icon="fa-trophy" title="Certification" aria-label="Certification"
  189. attrs="{'invisible': [('certification', '=', False)]}"/>
  190. <field name="user_id" widget="many2one_avatar_user"/>
  191. <field name="answer_duration_avg" widget="float_time"/>
  192. <field name="answer_count"/>
  193. <field name="answer_done_count" optional="hide"/>
  194. <field name="success_count" optional="hide"/>
  195. <field name="success_ratio"/>
  196. <field name="answer_score_avg"/>
  197. <!-- Tweak as icons aren't directly supported in xml -->
  198. </tree>
  199. </field>
  200. </record>
  201. <record id="survey_survey_view_kanban" model="ir.ui.view">
  202. <field name="name">survey.survey.view.kanban</field>
  203. <field name="model">survey.survey</field>
  204. <field name="arch" type="xml">
  205. <kanban class="o_survey_survey_view_kanban" js_class="survey_view_kanban">
  206. <field name="active"/>
  207. <field name="certification"/>
  208. <field name="color"/>
  209. <field name="create_date"/>
  210. <field name="scoring_type"/>
  211. <field name="session_state"/>
  212. <field name="success_ratio"/>
  213. <templates>
  214. <div t-name="kanban-box"
  215. t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)}
  216. oe_kanban_card oe_kanban_global_click
  217. o_survey_kanban_card #{record.certification.raw_value ? 'o_survey_kanban_card_certification' : ''}">
  218. <!-- displayed in ungrouped mode -->
  219. <div class="o_survey_kanban_card_ungrouped row mx-0">
  220. <div class="col-lg-2 col-sm-8 py-0 my-2 my-lg-0 col-12">
  221. <div class="d-flex flex-grow-1 flex-column my-0 my-lg-2">
  222. <span class="fw-bold"><field name="title"/></span>
  223. <span t-if="!selection_mode">
  224. <field name="user_id" widget="many2one_avatar_user"
  225. options="{'display_avatar_name': True}"/>
  226. -
  227. <t t-esc="luxon.DateTime.fromISO(record.create_date.raw_value).toFormat('MMM yyyy')"/>
  228. </span>
  229. </div>
  230. </div>
  231. <div t-attf-class="col-lg-1 col-sm-4 d-none d-sm-block py-0 my-2 col-#{selection_mode ? '12' : '6'}">
  232. <span class="fw-bold"><field name="question_count"/></span><br t-if="!selection_mode"/>
  233. <span class="text-muted">Questions</span>
  234. </div>
  235. <div t-if="selection_mode" class="col-12 d-flex justify-content-end">
  236. <field name="user_id" widget="many2one_avatar_user"/>
  237. </div>
  238. <div t-if="!selection_mode" class="col-lg-1 col-sm-4 col-6 py-0 my-2">
  239. <span class="fw-bold">
  240. <field name="answer_duration_avg" widget="float_time"/>
  241. </span><br />
  242. <span class="text-muted">Average Duration</span>
  243. </div>
  244. <div t-if="!selection_mode" class="col-lg-1 col-sm-4 col-6 py-0 my-2">
  245. <a type="object"
  246. name="action_survey_user_input"
  247. class="fw-bold">
  248. <field name="answer_count"/><br />
  249. <span class="text-muted">Registered</span>
  250. </a>
  251. </div>
  252. <div t-if="!selection_mode" class="col-lg-1 col-sm-4 col-6 d-none d-sm-block py-0 my-2">
  253. <a type="object"
  254. name="action_survey_user_input_completed"
  255. class="fw-bold">
  256. <field name="answer_done_count"/><br />
  257. <span class="text-muted">Completed</span>
  258. </a>
  259. </div>
  260. <div t-if="!selection_mode" class="col-lg-1 col-sm-4 col-6 py-0 my-2"
  261. name="o_survey_kanban_card_section_success">
  262. <a t-if="record.scoring_type.raw_value != 'no_scoring'"
  263. type="object"
  264. name="action_survey_user_input_certified"
  265. class="fw-bold">
  266. <field name="success_ratio" widget="progressbar" class="d-block"/>
  267. <span class="text-muted" t-if="!record.certification.raw_value">Passed</span>
  268. <span class="text-muted" t-else="">Certified</span>
  269. </a>
  270. </div>
  271. <div t-if="!selection_mode" class="col-lg-3 col-sm-12 d-none d-sm-block py-0 my-2 pb-lg-3 ms-auto text-lg-end">
  272. <button name="action_send_survey"
  273. string="Share" type="object"
  274. class="btn btn-secondary border"
  275. attrs="{'invisible': [('active', '=', False)]}">
  276. Share
  277. </button>
  278. <button name="action_test_survey"
  279. string="Test" type="object"
  280. class="btn btn-secondary border"
  281. attrs="{'invisible': [('active', '=', False)]}">
  282. Test
  283. </button>
  284. <button name="action_result_survey"
  285. string="See results" type="object"
  286. class="btn btn-secondary border"
  287. attrs="{'invisible': [('active', '=', False)]}">
  288. See results
  289. </button>
  290. <button name="action_start_session"
  291. string="Start Live Session" type="object"
  292. class="btn btn-secondary border"
  293. attrs="{'invisible': ['|', '|', ('session_state', '!=', False), ('certification', '=', True), ('active', '=', False)]}">
  294. Start Live Session
  295. </button>
  296. <button name="action_end_session"
  297. string="End Live Session" type="object"
  298. class="btn btn-secondary border"
  299. attrs="{'invisible': ['|', ('session_state', 'not in', ['ready', 'in_progress']), ('active', '=', False)]}">
  300. End Live Session
  301. </button>
  302. </div>
  303. <widget name="web_ribbon" title="Archived"
  304. bg_color="bg-danger"
  305. attrs="{'invisible': [('active', '=', True)]}"/>
  306. </div>
  307. <!-- displayed in grouped mode -->
  308. <div class="o_survey_kanban_card_grouped">
  309. <widget name="web_ribbon" title="Archived"
  310. bg_color="bg-danger"
  311. attrs="{'invisible': [('active', '=', True)]}"/>
  312. <div class="o_dropdown_kanban dropdown" t-if="widget.editable">
  313. <a href="#" role="button"
  314. class="dropdown-toggle o-no-caret btn"
  315. data-bs-toggle="dropdown" data-bs-display="static"
  316. aria-label="Dropdown menu" title="Dropdown menu">
  317. <span class="fa fa-ellipsis-v"/>
  318. </a>
  319. <div class="dropdown-menu" role="menu">
  320. <a role="menuitem" type="edit" class="dropdown-item">Edit Survey</a>
  321. <a t-if="record.active.raw_value" role="menuitem" type="object" class="dropdown-item" name="action_send_survey">Share</a>
  322. <a t-if="widget.deletable" role="menuitem" type="delete" class="dropdown-item">Delete</a>
  323. <div role="separator" class="dropdown-divider"/>
  324. <div role="separator" class="dropdown-item-text">Color</div>
  325. <ul class="oe_kanban_colorpicker" data-field="color"/>
  326. </div>
  327. </div>
  328. <div class="o_kanban_record_top">
  329. <h4 class="o_kanban_record_title p-0 mb4"><field name="title" /></h4>
  330. </div>
  331. <div class="row g-0">
  332. <div class="col-10 p-0 pb-1">
  333. <div class="container o_kanban_card_content" t-if="record.answer_count.raw_value != 0">
  334. <div class="row mt-4 ms-5">
  335. <div class="col-4 p-0">
  336. <a name="action_survey_user_input" type="object" class="d-flex flex-column align-items-center">
  337. <span class="fw-bold"><field name="answer_count"/></span>
  338. <span class="text-muted">Registered</span>
  339. </a>
  340. </div>
  341. <div class="col-4 p-0 border-start">
  342. <a name="action_survey_user_input_completed" type="object" class="d-flex flex-column align-items-center">
  343. <span class="fw-bold"><field name="answer_done_count"/></span>
  344. <span class="text-muted">Completed</span>
  345. </a>
  346. </div>
  347. <div class="col-4 p-0 border-start" t-if="record.scoring_type.raw_value != 'no_scoring'" >
  348. <a name="action_survey_user_input_certified" type="object" class="d-flex flex-column align-items-center">
  349. <span class="fw-bold"> <t t-esc="Math.round(record.success_ratio.raw_value)"></t> %</span>
  350. <span class="text-muted" >Success</span>
  351. </a>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. <!-- Generic -->
  359. <div t-if="!selection_mode" class="o_survey_kanban_card_bottom">
  360. <field name="activity_ids" widget="kanban_activity"/>
  361. </div>
  362. </div>
  363. </templates>
  364. </kanban>
  365. </field>
  366. </record>
  367. <record id="survey_survey_view_search" model="ir.ui.view">
  368. <field name="name">survey.survey.search</field>
  369. <field name="model">survey.survey</field>
  370. <field name="arch" type="xml">
  371. <search string="Survey">
  372. <field string="Survey" name="title"/>
  373. <field string="Question &amp; Pages" name="question_and_page_ids"/>
  374. <filter string="Is a Certification" name="certification" domain="[('certification', '=', True)]"/>
  375. <filter string="Is not a Certification" name="not_certification" domain="[('certification', '=', False)]"/>
  376. <separator/>
  377. <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
  378. <separator/>
  379. <filter invisible="1" string="Late Activities" name="activities_overdue"
  380. domain="[('my_activity_date_deadline', '&lt;', context_today().strftime('%Y-%m-%d'))]"
  381. help="Show all records which has next action date is before today"/>
  382. <filter invisible="1" string="Today Activities" name="activities_today"
  383. domain="[('my_activity_date_deadline', '=', context_today().strftime('%Y-%m-%d'))]"/>
  384. <filter invisible="1" string="Upcoming Activities" name="activities_upcoming_all"
  385. domain="[('my_activity_date_deadline', '&gt;', context_today().strftime('%Y-%m-%d'))]"/>
  386. <group expand="0" string="Group By">
  387. <filter string="Responsible" name="group_by_responsible"
  388. context="{'group_by': 'user_id'}"/>
  389. </group>
  390. </search>
  391. </field>
  392. </record>
  393. <record model="ir.actions.act_window" id="action_survey_form">
  394. <field name="name">Surveys</field>
  395. <field name="res_model">survey.survey</field>
  396. <field name="view_mode">kanban,tree,form,activity</field>
  397. <field name="help" type="html">
  398. <p>
  399. No Survey Found
  400. </p><p>
  401. Ready to test? Pick a sample...
  402. </p>
  403. <div class="row mb-4">
  404. <div class="col-sm-4 o_survey_sample_container" action="action_load_sample_feedback_form">
  405. <div class="o_survey_sample_tile position-relative w-100 d-flex align-items-center justify-content-center m-auto">
  406. <img src="/survey/static/src/img/survey_sample_feedback_form.png" class="img-fluid"/>
  407. <div class="o_survey_sample_tile_cover o_survey_load_sample w-100 h-100 position-absolute rounded-circle text-center text-white p-3">
  408. Gather feedbacks from your employees and customers
  409. </div>
  410. </div>
  411. <div class="my-3">
  412. <a class="o_survey_load_sample h3 text-center text-primary">Feedback Form</a>
  413. </div>
  414. <a class="btn btn-outline-primary o_survey_load_sample"><span>Try It</span></a>
  415. </div>
  416. <div class="col-sm-4 o_survey_sample_container" action="action_load_sample_certification">
  417. <div class="o_survey_sample_tile position-relative w-100 d-flex align-items-center justify-content-center m-auto">
  418. <img src="/survey/static/src/img/survey_sample_certification.png" class="img-fluid"/>
  419. <div class="o_survey_sample_tile_cover o_survey_load_sample w-100 h-100 position-absolute rounded-circle text-center text-white p-3">
  420. Handle quiz &amp; certifications
  421. </div>
  422. </div>
  423. <div class="my-3">
  424. <a class="o_survey_load_sample h3 text-center text-primary">Certification</a>
  425. </div>
  426. <a class="btn btn-outline-primary o_survey_load_sample"><span>Try It</span></a>
  427. </div>
  428. <div class="col-sm-4 o_survey_sample_container" action="action_load_sample_live_presentation">
  429. <div class="o_survey_sample_tile position-relative w-100 d-flex align-items-center justify-content-center m-auto">
  430. <img src="/survey/static/src/img/survey_sample_live_presentation.png" class="img-fluid"/>
  431. <div class="o_survey_sample_tile_cover o_survey_load_sample w-100 h-100 position-absolute rounded-circle text-center text-white p-3">
  432. Add some fun to your presentations by sharing questions live
  433. </div>
  434. </div>
  435. <div class="my-3">
  436. <a class="o_survey_load_sample h3 text-center text-primary">Live Presentation</a>
  437. </div>
  438. <a class="btn btn-outline-primary o_survey_load_sample"><span>Try It</span></a>
  439. </div>
  440. </div>
  441. </field>
  442. </record>
  443. <record id="survey_survey_view_graph" model="ir.ui.view">
  444. <field name="name">survey.survey.view.graph</field>
  445. <field name="model">survey.survey</field>
  446. <field name="arch" type="xml">
  447. <graph>
  448. <field type="measure" name="color" invisible="1"/>
  449. </graph>
  450. </field>
  451. </record>
  452. <record id="survey_survey_view_pivot" model="ir.ui.view">
  453. <field name="name">survey.survey.view.pivot</field>
  454. <field name="model">survey.survey</field>
  455. <field name="arch" type="xml">
  456. <pivot>
  457. <field type="measure" name="color" invisible="1"/>
  458. </pivot>
  459. </field>
  460. </record>
  461. <menuitem name="Surveys" id="menu_survey_form" action="action_survey_form" parent="menu_surveys" sequence="1"/>
  462. </data>
  463. </odoo>