b1d185624599b9e4a5457399a99525a04de9d9bb
## Survey Due to the behavior of X2Many fields, the questions created when editing a survey were not usable immediately after creation to be conditional triggers for new questions. The whole survey had to be saved first, which wasn't a smooth experience for the user. This commit will save the survey and question at several times: ### For each new question added Similarly to what was implemented for chatbot scripts, enables the immediate computation of allowed question/answer triggers, permitting their use when chaining question creation. This also enables to check the answers "validation" fields immediately, and activating scoring and add scores to question/answers without requiring the extra steps of saving and re-entering edit mode for the survey. ### When rows are deleted This will trigger the immediate removal of the triggers icons on questions that were triggered by an answer to the deleted question. ### NOT when questions are moved As there is no convenient way to ensure questions are properly ordered with respect to their triggers (order dependency) without popping error messages at every step when reordering questions, we chose to mark the misplaced lines, missing trigger records or triggers that will be ignored (with the new `trigger` widget). This could have been done entirely with 'server' logic, but that would have required additional saves and cleaning fields even more often, even during a temporary reordering step, which isn't convenient. ### Misc Finally, note the extra fields added on the question_and_page_ids field of the survey form view, required to trigger these fields' update consistently (required after reordering or removing records which sometimes doesn't occur without these). Tests ensuring the behavior of the X2Many (saving parent on open/edit and show notifications on error) and the trigger widget are included. ## web To support the functionality described above, we need to allow the caller of 'save' to catch errors to prevent default handling (here to use a notification instead of an additional Dialog). Task-2623482 Part of odoo#78705 Part-of: odoo/odoo#78705
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%