summaryrefslogtreecommitdiff
path: root/addons/project/data/project_mail_template_data.xml
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-04-04 11:56:40 +0000
committerDavid Beguin <dbe@odoo.com>2019-11-19 12:51:55 +0000
commitb1e32976a6297daf2fd5200230c45fe823d26f15 (patch)
tree9cd92191c9ab6741fef1ada5780db0d3c9c51596 /addons/project/data/project_mail_template_data.xml
parent52a6b00fa704a9c67ff22d28e8b1fbf45fdaa75c (diff)
[REF] survey : make survey form a widget
Purpose of this commit is - to make the survey js controller a widget, to be more 'odoo-standard'. - to lessen number of RPCs and clean old code for prefilling and validation of surveys. Clean Prefill : Prefill can be done directly in the template as the template has already all the needed values (in answer object). Clean Validation : Validation is done at server side and is independant from prefilling values. Dates: Dates are now formatted directly in the template, at rendering, using a format_date fonction pointer called in the template. Don't use widget in review mode: Remove o_survey_form class from review template as only dates were processed in the widget for review template. Breadcrumb : Remove button previous, prev=prev and go_back mechanism : The previous page is handled by the breadcrump Remove redirect url mechanism. Breadcrumb now saves the answers when going to a previous page. Move o_survey_form class to a higher div to englobe breadcrumb in the widget and ease his handling. Remove locale load as already done in session.js#load_modules This commit modifies the route type of survey submit to work in json. The js survey form controller calls now manually the route via rpc. Task ID : 1930132 PR #32419
Diffstat (limited to 'addons/project/data/project_mail_template_data.xml')
0 files changed, 0 insertions, 0 deletions