Daily updates from Odoo
Wednesday, July 6, 2022
2 changes
Resolved issues and error corrections
Updated appraisal survey sample data so page breaks are treated correctly and no longer trigger chart-related errors during live survey sessions. This prevents crashes when using the included demo appraisal surveys, improving reliability for testing and demonstrations.
Original PR description
Currently, in demo data of some surveys, there are records of 'survey.question'
having 'is_page' field value as true and 'question_type' is not defined. When
question type is not defined, default value 'simple_choice' is assigned to the
'question_type' field. Now when we create a live session of that survey and
goes to the page, it tries to read the data for bar chart but data is not
available (undefined) and throws the traceback. This happens because
question types ('simple_choice', 'multiple_choice') has bar chart.
Previous versions set the default 'question_type' value to 'text_box',
so no traceback is triggered.
In this PR, we are setting the 'question_type' field value to 'False' in the
demo data record whose 'is_page' field value is 'True'.
Note: The issue is started from saas-15.1
https://github.com/odoo/odoo/commit/1fb99d79b1567d4c150dc07f309ce54a3beea8e3#diff-cf2aadbf6a252dfca6d3450a0ce6ad280b1924afe9a8fc22f7077c998d080009R52
taskID- 2841582A test for AvaTax subscription sales was corrected so it uses the fiscal position for the appropriate company. This helps ensure tax-related subscription checks reflect the correct company setup and reduces the risk of misleading test results.
Original PR description
The fiscal position was not set on the right company