Skip to content

Commit abc5a99

Browse files
committed
[18.0][ADD] survey_question_list_all: New module
1 parent 15a049d commit abc5a99

File tree

6 files changed

+37
-0
lines changed

6 files changed

+37
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2026 Daniel Lo Nigro
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
3+
{
4+
"name": "List All Survey Questions",
5+
"summary": "List all questions in the survey form instead of only 40 per page",
6+
"version": "18.0.1.0.0",
7+
"category": "Marketing",
8+
"depends": ["survey"],
9+
"data": ["views/survey_survey_views.xml"],
10+
"author": "Daniel Lo Nigro",
11+
"website": "https://github.com/OCA/survey",
12+
"license": "AGPL-3",
13+
"installable": True,
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- [Daniel Lo Nigro](https://d.sb/) <git@d.sb>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module updates the survey form view to display all questions without
2+
pagination, instead of only showing 40 at a time.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<odoo>
3+
<record id="survey_survey_view_form" model="ir.ui.view">
4+
<field name="name">survey.survey.view.form.question.list.all</field>
5+
<field name="model">survey.survey</field>
6+
<field name="inherit_id" ref="survey.survey_survey_view_form" />
7+
<field name="arch" type="xml">
8+
<xpath
9+
expr="//field[@name='question_and_page_ids']/list"
10+
position="attributes"
11+
>
12+
<attribute name="limit">10000</attribute>
13+
</xpath>
14+
</field>
15+
</record>
16+
</odoo>

0 commit comments

Comments
 (0)