Commit Graph

89 Commits

Author SHA1 Message Date
Denis Ledoux 812318dcba [FIX] survery: access rights for invitations
When building a new suvery, and sending invitation
trough private emails, it wasn't possible
to fill the survey from the link sent
if you were not logged as the user who sent
the invitation, or as a survey manager

opw-644210
Fixes #7486
2015-07-09 11:01:14 +02:00
Richard Mathot f9376905cc [FIX] survey: avoid navigation crash
If a survey has "allow users to go back" option enabled, users can go back to previous pages and change their answers before submitting the whole survey.

This commit fixes the very special case, when the user reaches the last page of the survey, then click on "Previous" button, then reopen the survey from the invitation URL (/survey/fill/<survey_id>/<token> without the /prev flag in the URL). This won't crash anymore.

This commit fixes #2658 and #2680.
2015-01-16 17:24:15 +01:00
Richard Mathot dbb9c8ebeb [REM] survey: unused import 2015-01-16 17:24:14 +01:00
Denis Ledoux 69e8edb8f2 [FIX] survey: use ustr instead of str for question.question 2014-12-23 11:52:45 +01:00
jas d7ef283f53 [FIX] survey: trace the partner_id taking the survey; if no token, set as the current user's partner. 2014-09-02 11:31:03 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52:14 +02:00
Christophe Simonis e4cb5202a0 [MERGE] forward port of branch saas-4 up to fa07bc8 2014-07-30 20:30:14 +02:00
Richard Mathot 5e1221b339 [FIX] survey: display comments in results 2014-07-25 14:48:57 +02:00
Richard Mathot eadd1b3907 [FIX] survey: correct counting of finished answers 2014-07-25 13:47:42 +02:00
Richard Mathot 7ac86cff07 [DOC] survey: retroengineering
A bit of commenting in order to help future debugging and unf**king of
the survey reporting tool.
2014-07-25 13:47:42 +02:00
Richard Mathot 2a02d644a2 [FIX] survey: remove duplicate browse record
The `prepare_result` dict shouldn't keep a browse record of a survey, as it
is explicitely passed to the template by the controller
`survey_reporting`
2014-07-25 13:47:42 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Richard Mathot 6e93af4774 [FIX] survey: display labels in the right order in survey reporting views 2014-06-20 11:45:03 +02:00
Olivier Dony f15cbd6520 [MERGE] Forward-port saas-4 bugfixes up to ad4c6ca 2014-06-12 18:54:36 +02:00
Richard Mathot 194049df99 [FIX] survey: user-friendly message when login is required 2014-06-11 10:57:03 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Fabien Meghazi 1ce14dbe6a [FIX] survey route that is only accessed with POST verb 2014-05-14 13:58:34 +02:00
Richard Mathot (OpenERP) b00783ab46 [FIX] survey: Prevent template crashing while there are no data for the survey 2014-05-14 09:47:25 +02:00
Fabien Meghazi 8eed143112 [IMP] Invert multilang logic in route decorator. True by default, can be set to False explicitlty 2014-05-13 11:35:45 +02:00
Olivier Dony 4cecbd919f [FIX] mass_mailing,website*,survey: leftover calls to website.get_public_user()
This method was (partially) removed at rev.9421 
rev-id al@openerp.com-20140507153223-q73u5lhyrfw98o3a

bzr revid: odo@openerp.com-20140512103935-o0ue9wzenm5wjejq
2014-05-12 12:39:35 +02:00
Richard Mathot (OpenERP) c89723fcb8 [FIX] incorrect route
bzr revid: rim@openerp.com-20140417142648-zx2izdo6p9byqp3q
2014-04-17 16:26:48 +02:00
Richard Mathot (OpenERP) 4aed9ce7e7 [IMP] Score for each question
bzr revid: rim@openerp.com-20140416151320-1zsxsss60zi9w11y
2014-04-16 17:13:20 +02:00
Richard Mathot (OpenERP) 871bb07d65 [IMP] Highlight the right answer in MCQ correction mode
bzr revid: rim@openerp.com-20140416101129-t33z38q7ez0358gh
2014-04-16 12:11:29 +02:00
Richard Mathot (OpenERP) 22fff5237b [FIX] Correct prefill for comment answers
bzr revid: rim@openerp.com-20140411121541-pj3m0z44hwd0z89w
2014-04-11 14:15:41 +02:00
Richard Mathot (OpenERP) 8905975fb8 [REM] unused code
bzr revid: rim@openerp.com-20140410152112-q91jka9pon4q6lya
2014-04-10 17:21:12 +02:00
Richard Mathot (OpenERP) 53ad31c18f [FIX] avoid crash when there is 0 pages for surveys
bzr revid: rim@openerp.com-20140410143018-yk0xvelpiuh8bau2
2014-04-10 16:30:18 +02:00
Richard Mathot (OpenERP) 5d81ea0988 [FIX] remove logging of false error
bzr revid: rim@openerp.com-20140409100313-zirmih0uzce19v2i
2014-04-09 12:03:13 +02:00
Richard Mathot (OpenERP) e7766719fe [FIX] Fixing things & views with comment answers
bzr revid: rim@openerp.com-20140409085216-5knre0uoxygunazr
2014-04-09 10:52:16 +02:00
Richard Mathot (OpenERP) d197bab150 [MERGE][IMP] Reporting system for surveys
bzr revid: rim@openerp.com-20140408135908-0h3qiohc84kx4b2r
2014-04-08 15:59:08 +02:00
Dharmraj Jhala (OpenERP) 364eb7546a [IMP] removed ajax calls and loaded data while rendering the template
bzr revid: dizzy.zala@gmail.com-20140404051913-ecy6jm62fxacs6me
2014-04-04 10:49:13 +05:30
Dharmraj Jhala (OpenERP) 37c390beb6 [IMP] merged methods get_finished_survey_input ids with filter_input_ids in survey.py and to retain correct filters improved exception handling in controller
bzr revid: dizzy.zala@gmail.com-20140403115423-171x3cbxie82qv8w
2014-04-03 17:24:23 +05:30
Dharmraj Jhala (OpenERP) 4e2942d418 [IMP] moved prepare_result and get_input_summary to the model from controller and some other improvements
bzr revid: dizzy.zala@gmail.com-20140403104637-dpqi4euo5czy3rsk
2014-04-03 16:16:37 +05:30
Dharmraj Jhala (OpenERP) ca78346bf3 [IMP] moved business logic to model file from controller and other misc improvements
bzr revid: dizzy.zala@gmail.com-20140328133706-wwsg07sqgzr650pt
2014-03-28 19:07:06 +05:30
Dharmraj Jhala (OpenERP) bba92d684c [IMP] misc improvement
bzr revid: dizzy.zala@gmail.com-20140327070755-h5zj232h3yskmomu
2014-03-27 12:37:55 +05:30
Dharmraj Jhala (OpenERP) 72700a2cf9 [IMP] Added preset All vs Finished Filter
bzr revid: dizzy.zala@gmail.com-20140327064305-tlw358e0u9wu9jnd
2014-03-27 12:13:05 +05:30
Dharmraj Jhala (OpenERP) 6242a749e0 [IMP] code improvement
bzr revid: dizzy.zala@gmail.com-20140326051638-got79xh1azvz77ut
2014-03-26 10:46:38 +05:30
Dharmraj Jhala (OpenERP) 20a3cd97ba [IMP] improved code so that template calls minimum function
bzr revid: dizzy.zala@gmail.com-20140325130848-w96dwzhu6kktw428
2014-03-25 18:38:48 +05:30
Dharmraj Jhala (OpenERP) eec4143d7a [IMP] used formatted string with % for url
bzr revid: dizzy.zala@gmail.com-20140324123019-bcnlwgfo3z3f83j1
2014-03-24 18:00:19 +05:30
Richard Mathot (OpenERP) ecb636c67c [FIX] URL slugs mess...
bzr revid: rim@openerp.com-20140319142952-2wzi0fvzvopx9lmy
2014-03-19 15:29:52 +01:00
Richard Mathot (OpenERP) 7227b0b0c9 [REF] Bye bye vim
bzr revid: rim@openerp.com-20140303133814-rpjv0gl7618bt1i1
2014-03-03 14:38:14 +01:00
Richard Mathot (OpenERP) 2cde1e8b91 [MERGE] Reporting tool for surveys + [REF] Serveral refactorings (code style, missing semicolons in JS, typos...) + [FIX] Security breach using unsafe eval
bzr revid: rim@openerp.com-20140303130544-xoage8hgkhtfhwpg
2014-03-03 14:05:44 +01:00
Parth Gajjar (Open ERP) 3b395dab1a [ADD,IMP] added filters for display, filterd textbox, free_text and date on basis of filter and some exception handling
bzr revid: pga@tinyerp.com-20140207113309-5o91de9jed2670qd
2014-02-07 17:03:09 +05:30
Parth Gajjar (Open ERP) 34f14e357c [ADD] added filter for matrix and choice
bzr revid: pga@tinyerp.com-20140206134053-mjlfe7qdf07bk8me
2014-02-06 19:10:53 +05:30
Parth Gajjar (Open ERP) 3015f006fe [IMP] improved minor code,Checkpoint: Part 1 complete
bzr revid: pga@tinyerp.com-20140206072437-zrpchhf1tbp2kt2m
2014-02-06 12:54:37 +05:30
Parth Gajjar (Open ERP) 0bf2635970 [MERGE] merged with trunk-survey2-rim
bzr revid: pga@tinyerp.com-20140206051331-vpf8p1zkrkjhw01j
2014-02-06 10:43:31 +05:30
Richard Mathot (OpenERP) c8a320553c [IMP] Quizz mode
bzr revid: rim@openerp.com-20140205081626-0e1r5g71c53r5x5w
2014-02-05 09:16:26 +01:00
Parth Gajjar (Open ERP) 51b1eb6fbf [IMP] moved pagination script in separate js file,and solved minor issues
bzr revid: pga@tinyerp.com-20140204095157-0mfdy27l9l73dxf5
2014-02-04 15:21:57 +05:30
Parth Gajjar (Open ERP) e942cb2cd0 [IMP] moved graph JavaScript from template to separate JS file (using AJAX), removed static copy of graph library
bzr revid: pga@tinyerp.com-20140203073439-mj21tfw6a0mg56v1
2014-02-03 13:04:39 +05:30
Parth Gajjar (Open ERP) f74a064166 [IMP] added template for no inputs for survey, added docstring
bzr revid: pga@tinyerp.com-20140129124812-07swdwbdu9mgp9l5
2014-01-29 18:18:12 +05:30
Dharmraj Jhala (OpenERP) f93465f4a4 [MERGE] with trunk-survey2-rim
bzr revid: dizzy.zala@gmail.com-20140129051248-ysm8qy498oqmazxe
2014-01-29 10:42:48 +05:30