diff options
| author | Victor Feyens <vfe@odoo.com> | 2019-03-28 16:46:44 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2019-04-25 14:17:45 +0000 |
| commit | 50caae5bc02bc6eaa1b4a4dfd965c84c940bb84b (patch) | |
| tree | 15b80bf599dc2bf615e2621566370d41d28f99b9 /addons/survey/tests/common.py | |
| parent | 28e1686bc5c862802162606527a190e344014591 (diff) | |
[REF] survey: replace dynamic survey.stage by a static state on survey.survey
Stages modification through the clickable statusbar wasn't very intuitive.
By fixing default behavior through states (and corresponding buttons), default user experience is simplified.
3 static states available : draft, open, closed
Form view: navigation through states with buttons
Kanban view: disabled modification of survey state
Task ID : 1949110
closes odoo/odoo#32325
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/survey/tests/common.py')
| -rw-r--r-- | addons/survey/tests/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/survey/tests/common.py b/addons/survey/tests/common.py index d0a7942ade7..71af5d8d4d0 100644 --- a/addons/survey/tests/common.py +++ b/addons/survey/tests/common.py @@ -68,7 +68,7 @@ class SurveyCase(common.SavepointCase): 'access_mode': 'public', 'users_login_required': True, 'users_can_go_back': False, - 'stage_id': self.env['survey.stage'].search([('closed', '=', False)]).id, + 'state': 'open', }) self.page_0 = self.env['survey.question'].sudo(self.survey_manager).create({ 'title': 'First page', |
