summaryrefslogtreecommitdiff
path: root/addons/survey
AgeCommit message (Collapse)Author
2021-05-30[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-28[FIX] survey: Unescape characters in mail subjectAdrien Widart
To reproduce the error: Create a survey (title must contain ") and send it Error: The mail subject is incorrect: the character " is replaced with &#34; OPW-2536206 closes odoo/odoo#71363 X-original-commit: a2d46c2d1a64c5006d6a7d9ddf5a08a48e5452b9 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-05-11[FIX] survey: display right date format in datepickerNasreddin (bon)
Issue - Install 'Survey' & 'website' module - Enable "es_VE" language and activate on main website - Go to Website Homepage - Switch to "Spanish (VE)" language (footer) - Go to "Survey" module - Create a survey: - Add a question of type 'Date' then save - Click on "TEST" button - Start survey and add a date with the datepicker - Submit survey Error message : 'This is not a date' Cause When submit survey, not using the database date format. Solution When validating form (on submit), check if date is formated with database format and (not the moment locale since user can alter date and datetime format). opw-2452237 closes odoo/odoo#70273 X-original-commit: ddfcecc6c3d013532d06409633a37e653cc05e0f Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2021-05-23[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-16[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-09[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-04[FIX] survey: allow to modify a completed surveyAdrien Widart
Updating a completed survey will raise an error with a traceback. To reproduce the error: (Use demo data) 1. Survey > Participations 2. Select a completed form 3. Change one answer, Save Error: A traceback appears "[...] ValueError: Computing score requires a question in arguments." Here is an extract from the method concerned: ```python @api.model def _get_answer_score_values(self, vals, compute_speed_score=True): """ [...] """ user_input_id = vals.get('user_input_id') answer_type = vals.get('answer_type') question_id = vals.get('question_id') if not question_id: raise ValueError(_('Computing score requires a question in arguments.')) ``` This method needs some information to work properly. OPW-2488974 closes odoo/odoo#69842 Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
2021-05-02[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-29[FIX] *: bunch of mismarked translation specifiersXavier Morel
`_(xyz)` will wrap them in an underscore.js object, which when used in a string context will just return the string. So it's basically a no-op, but it certainly doesn't translate the terms. closes odoo/odoo#70000 Related: odoo/enterprise#18001 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2021-04-25[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-04[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-01[REF] survey: split computed editable fieldsstd-odoo
Purpose ======= Some computed stored editable fields are computed in the same method. In that case, when one of the value is provided in a create / write call, the computed method is not called and other fields computed in the same method do not have the right value. Task 2377119 COM odoo/odoo/pull/65772 ENT odoo/enterprise/pull/16221
2021-03-01[FIX] survey: fix the function extract comment from the answersDjamel (otd)
Steps to follow to reproduce the bug: -Go to survey -Choose any survey with at least one "single text box" question -In the survey form -Click on the button test -Complete the survey, but in a "single text box" question, write the word "comment" -Validate the survey -An error is triggered. Problem : In the function which extracts comments from answers, it doesn't check the type in which the answer is stored. When there is a comment, it is stored in a dict under the key: "comment". To find the comment, the function checks if "comment"(key) is in the answer. But in the case of "single text box" question, the answer is stored in a string. If the word "comment" is present in the answer, the function looking for the key "comment" will return True and try to extract the comment. Solution : Add a check to ensure that we are looking for the key "comment" in dict type. opw-2446194 closes odoo/odoo#66907 Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
2021-02-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-31[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-24[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-08[IMP] survey: improve label axis x in chartjs live surveyJérémy Hennecart
Before when there were long labels, this was leading to an overlapping of the text. Now, we display the whole label but in multiline with a maximum number of characters per line depending on the number of columns. The font size will also be compute depending of the number of characters per line and with the length of the longest word in the labels. task-2382681 closes odoo/odoo#61913 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2021-01-17[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-10[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-09[FIX] survey: use better font for survey reportChristophe Monniez
TheSecretRegular font license is not clear and moreover, does not support accented characters. With this commit, the font is replaced by one under the SIL Open Font License.
2020-12-04[FIX] survey, web, web_editor, website, website_form: Prevent invalid date ↵Achraf (abz)
stock.picking What are the steps to reproduce your issue? 1. Install "stock" 2. Go to Inventory/Inventory Overview/Internal Transfer 3. Create new record and set manually a date with year < 1000 like "0008-10-10 18:35:00" 4. Save What is currently happening? An error arises when saving the record, and it is then no longer possible to reopen the records or any view containing it. This also prevents us from correcting the date to no longer have the error Why is this happening? The root cause is an inconsistency in `strftime` for years < 1000 [1, 2]. To take it into account, a zero-padding is needed in the DateTime parser. How to fix the bug? The missing padding is added. However, such dates lead to problematic behaviors in Python: ``` DT_FORMAT = "%Y-%m-%d %H:%M:%S" new_date = "0008-02-05 18:10:10" datetime.strptime( datetime.strptime( new_date, DT_FORMAT ).strftime(DT_FORMAT), DT_FORMAT ) ``` This raises: ``` ValueError: time data '8-02-05 18:10:10' does not match format '%Y-%m-%d %H:%M:%S' ``` As of today there was no reported business cases where dates with year < 1000 would be necessary. Therefore, we limit the range to years >= 1000. [1] https://bugs.python.org/issue13305 [2] https://docs.python.org/dev/library/datetime.html#strftime-strptime-behavior opw-2408260 closes odoo/odoo#62818 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-12-02[FIX] survey: no block on return to certificationNicolas Lempereur
steps to reproduce: - start a certification with time limit - close it and go to it back after time limit +10 seconds is passed => an "There was an error during the validation of the survey." appear that prevent to finish the survey or do it a second time until the ongoing survey.user_input of the user is deleted. This was done to prevent people from cheating by answering after the time limit end. With this changeset, when we go back to the survey after its end, we will finish it without saving the answers. opw-2390623 closes #62752 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Co-authored-by: David Beguin <dbe@odoo.com>
2020-11-27[FIX] *: rephrase, correct typosMartin Trigaux
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#62539 Related: odoo/enterprise#15032 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-11-27[FIX] survey: Change certificates designAchraf (abz)
This PR decreases the opacity of dark squares and remove the white background of the logo in the certification templates to make it look better opw-2387563 https://www.odoo.com/web#id=2387563&action=4043&model=project.task&view_type=form&cids=1&menu_id=4720 closes odoo/odoo#62507 Signed-off-by: Achraf <abz-odoo@users.noreply.github.com>
2020-10-22[FIX] various: not translate the close icon of notificationsBenoit Socias
Same change in several areas where translations existed: - website editor notification popup - elearning share popup - forum remediation filter popup - event registration attendees popup - portal rating popup - stripe payment error popup And many other locations where there were no translations yet "&times;" has been replaced by its UTF8 character. Also introduced aria-label where missing. Before this commit the close icon was included in translated resources. For example, in Spanish the "&times;" had been turned into "&veces;" thus not rendering an icon anymore After this commit the close icon is not a translated text anymore and remains an icon across all languages https://github.com/odoo/odoo/pull/60186 task-2312878 closes odoo/odoo#60186 Related: odoo/enterprise#14209 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-11-22[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-16[FIX] *: rephrase, correct typosMartin Trigaux
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#61785 Related: odoo/enterprise#14751 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-11-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-10[FIX] *: sanitize action content readingMartin Trigaux
The open_action_with_context was not using _for_xml_id, producing an error when reading the action content. In open_action, the action_name was taken from the context and needs sanity checks. Ensure only actions from the account module can be read and only if the user has access to the target model. This is a limitation of the previous behaviour but, at the moment, all known calls are made refering to an action from the account module. Limit the scope of this method while the 14.0 is still early to avoid having a door open to ready any action, and difficult to close later. Remove old action fetching from the context in create_move that is no longer used. closes odoo/odoo#61365 Related: odoo/enterprise#14682 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com> Co-authored-by: Xavier Morel <xmo@odoo.com>
2020-11-08[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-29[FIX] *: correct typos and bad EnglishMartin Trigaux
Courtesy of translators Reexport .pot of modified modules closes odoo/odoo#61002 Related: odoo/enterprise#14485 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-27[I18N] *: Update translation terms from TransifexMartin Trigaux
Except Spanish, waiting for cleanup closes odoo/odoo#60848 Related: odoo/enterprise#14421 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-21[IMP] packaging, l10n_dz, l10n_ro, survey: integrate Debian fixChristophe Monniez
With this commit, the executions bits are fixed on some xml, csv and ttf files. The fix was initialy made at the Debian packaging level. As xlwt is now in Debian buster, the overide is removed. The linked fonts in Debian package are now removed in one line to simplify the code. closes odoo/odoo#60114 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-10-21[REV] *: revert fb7407c for spanish translationsOlivier Dony
There was a problem in the Transifex translations for Spanish and all translations were overwritten by mistake with english defaults. This commit reverts all modified es.po files to their previous version while we work to restore the translations on Transifex.
2020-10-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-12[FIX] survey: let Chart.js handle the session graph max height automaticallyDavid Beguin
Before this commit, the graph y scale in the survey manager screen was based on the attendees count. But is some attendees do not answer the question, the bars never reach the maximum height of the graph, and bars can stay really small. Example: 10 attendees - 4 answers - A: 1 / B: 1 / C: 2 10 | | | | | 0 |_|__|__|_ A B C After this commit, the max height of the graph is not set on the graph. So the chart lib will handle itself the height and will adapt automatically the bars height in function of the data given to the graph. Bars will always take full height space, relatively to the count of the most voted answer. Example: 10 attendees - 4 answers - A: 1 / B: 1 / C: 2 2 | | | | | | | | 0 |_|__|__|_ A B C Task ID: 2351455 closes odoo/odoo#59106 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-10-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-02[FIX] survey: redirect on login page on survey start if not logged in.David Beguin
Before this commit, when sharing a survey 'Login required' to a non logged in user, the redirection was made to the home page. The reason is: when the survey is not started yet, no user input is already created for this survey and this user. So if no user_input has been created, yet, that means that the user has never started the survey before and user need first to login before continuing. After this commit, we redirect to the loggin page. Task ID: 2246430 closes odoo/odoo#58960 X-original-commit: a309d889ddf6e03a6701e921258cfa9338800fbb Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: David Beguin <dbeguin@users.noreply.github.com>
2020-10-05[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-02[FIX-IMP] survey: add check on master tabDavid Beguin
As survey session only works correctly when current tab is the master tab on the bus, an error message is shown to user when this is not the case. The user should close all other tabs on the same hostname before taking the survey. Task ID: 2345468 closes odoo/odoo#58987 X-original-commit: d5a1c104278e942f7fe332457c622a51dd647cfc Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-09-29[I18N] *: export 14.0 source termsMartin Trigaux
Including demo data this time closes odoo/odoo#58821 Related: odoo/enterprise#13682 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>