Commit Graph
259 Commits
Author SHA1 Message Date
Christophe Simonis edeceba7df [MERGE] forward port of branch saas-6 up to 7a768a4
Due to `sale` rewrite (94716a3f14),
the commit 503820acb6 has been partially
ignored (in sale.order.line) and will be rewritten later using new-api.
2015-08-28 15:07:16 +02:00
Denis Ledoux af07b2a075 [MERGE] forward port of branch 8.0 up to 42ecf5e 2015-08-26 14:05:17 +02:00
Martin Trigaux 8f2057a1c7 [FIX] survey: allow duplicate user answer
No reason to prevent as long as remove token

Fixes #7983, Closes #8009
2015-08-26 11:53:18 +02:00
Christophe Simonis 73e652818b [MERGE] forward port of branch saas-6 up to 8d95f6d 2015-08-15 16:57:35 +02:00
Christophe Simonis 2922f70de3 [MERGE] forward port of branch 8.0 up to 09ceb9c 2015-08-13 15:24:57 +02:00
Tony 4c610a31b9 [FIX] survey: allow change of previous answers for all questions types
Permission error on survey update
The user who answer the survey may not have delete permission for the user_input_line

In a survey, for a survey user (!= manager),
When browsing previous pages of anwsers,
the user wasn't allowed to change his answers
regarding simple choice, multiple choices and matrix
questions, as this kind of answers changes leaded to an
unlink operation, not allowed for survey users.

Closes #2901
2015-08-13 11:19:24 +02:00
Jaysinh Shukla 6909d0e986 [IMP] survey: tests suite and basic UI tests
(+ a few fixes)
2015-06-11 12:25:21 +02:00
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Ajay Patel de4135305c [IMP] survey: usability onboarding
Various views and usability tweaks:
- datetime picker in surveys
- remove technical field res_model for survey
- various relabelling
- better validation of date constraints
- onchange when email validation
- button to the backend in survey frontends
- icons in questions form views
2015-03-09 19:31:14 +01:00
Christophe Simonis 18e22be138 [MERGE] forward port of branch 8.0 up to 0aab81c 2015-01-19 17:15:56 +01:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Nick Booker c53951e0a5 [FIX] survey: typo, quizz to quiz
Fixes #4549
2015-01-08 13:14:06 +01:00
Julien De Coster d88c34d11e [IMP] Mass mailings send in cron
1. The merge of the "email_template" module into the "mail" module.
2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view.
3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing).
4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail.
5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign.
6. Many little improvements
2015-01-07 18:01:58 +01:00
Jeremy Kersten 858f4cecde [IMP] survey: display sum for numerical answers 2014-09-03 11:06:50 +02:00
Thibault Delavallée ce5b5e6ba5 [FIX] survey: in prepare_result, result_summary variable could be returned without being initialized (error in question.type maybe, but anyway should be more secure) 2014-08-28 12:42:09 +02:00
Richard Mathot 413bc62503 [FIX] survey: regressions introduced in forward-port fd4fd35e32 2014-08-08 17:07:31 +02:00
Christophe Simonis d5e8b42690 [FIX] survey: use relative urls for url actions 2014-08-08 15:24:48 +02:00
Christophe Simonis fd4fd35e32 [MERGE] forward port of branch saas-5 up to e4cb520 2014-07-30 20:52: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 f0b6beac29 [FIX] survey: comments are properly recorded now 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
Olivier Dony 34bfa1b44f [MERGE] Forward-port saas-5 up to d9cda97 2014-07-05 01:45:45 +02:00
Richard Mathot 0b0c1fbdd6 [FIX] survey: catch exception while quizz mode 2014-07-01 15:56:50 +02:00
Richard Mathot 14fae54863 [FIX] survey: bug while recording comments 2014-07-01 15:37:27 +02:00
Richard Mathot 7721ddc7ad [FIX] survey: Nasty brackets... 2014-07-01 14:51:00 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary size parameters on char fields 2014-06-25 17:13:43 +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
Richard Mathot b7137a5ada [FIX] survey: ordering of questions/labels was buggy 2014-06-12 16:40:58 +02:00
Christophe Simonis 2138892723 [FIX] survey: handle the case where there is no stage available when searching default stage.
[FIX] survey: define survey.stage before using it in survey.survey

bzr revid: chs@openerp.com-20140417160306-0oeb928gpfwxoxhz
2014-04-17 18:03:06 +02:00
Richard Mathot (OpenERP) 1085389add [IMP] survey: imp in views to enable better config of quiz mode
bzr revid: rim@openerp.com-20140415091446-hj0xugog2u3almaw
2014-04-15 11:14:46 +02:00
Richard Mathot (OpenERP) 41447050e5 [FIX] Dirty fix: prevent crash in computing data from SCQ/MCQ/matrices by ignoring comments
bzr revid: rim@openerp.com-20140411120735-u04occnkchgm3ztc
2014-04-11 14:07:35 +02:00
Richard Mathot (OpenERP) 1fe3580fc6 [FIX] Correct saving of comments
bzr revid: rim@openerp.com-20140410150102-3bq9lz31sebigd9i
2014-04-10 17:01:02 +02:00
Richard Mathot (OpenERP) b7989fbeec [FIX] Correct saving of comments
bzr revid: rim@openerp.com-20140410145247-o2759q0r022ybp4q
2014-04-10 16:52:47 +02:00
Richard Mathot (OpenERP) 7dbc51e0d4 [IMP] Add default stage for surveys
bzr revid: rim@openerp.com-20140409145945-r32tdnexrbjxousu
2014-04-09 16:59:45 +02:00
Richard Mathot (OpenERP) d1070a8ad0 [TYPO]
bzr revid: rim@openerp.com-20140409145009-73y20g3ko7c3soq4
2014-04-09 16:50:09 +02:00
Richard Mathot (OpenERP) db8954d6dc [REF] code factoring
bzr revid: rim@openerp.com-20140409144547-70ujj2ej5tebj06i
2014-04-09 16:45:47 +02:00
Richard Mathot (OpenERP) 76621a0b24 [FIX] validation system: the last things
bzr revid: rim@openerp.com-20140409144224-6b00mnmihe8t1ii7
2014-04-09 16:42:24 +02:00
Richard Mathot (OpenERP) 1f3342acc4 [FIX] validation of MCQ
bzr revid: rim@openerp.com-20140409141307-79q4itmvvauzfg0j
2014-04-09 16:13:07 +02:00
Richard Mathot (OpenERP) efd4e33c0b [FIX] bugs in questions validation
bzr revid: rim@openerp.com-20140409135659-9m9jqbmcefk5uaou
2014-04-09 15:56:59 +02:00
Richard Mathot (OpenERP) fbfd9a6197 [FIX] Validation of the answers according to new criteria
bzr revid: rim@openerp.com-20140409133909-8dob25mei52sf7o4
2014-04-09 15:39:09 +02:00
Richard Mathot (OpenERP) f77034af5a [IMP] Model fortification
bzr revid: rim@openerp.com-20140409091009-rocy50615a4yg03d
2014-04-09 11:10:09 +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) beeb188ae8 [REM] Vieux code tout pourri
bzr revid: rim@openerp.com-20140408152526-czfgswl0tf5gqqxe
2014-04-08 17:25:26 +02:00
Richard Mathot (OpenERP) 625e8f5fce [REM] Outdated code + typo
bzr revid: rim@openerp.com-20140408151959-csz5gomaswzf4sq8
2014-04-08 17:19:59 +02:00
Richard Mathot (OpenERP) 531f6b7e26 [REF] Moving code
bzr revid: rim@openerp.com-20140408150936-38bfieofd98lkam1
2014-04-08 17:09:36 +02:00
Richard Mathot (OpenERP) 126896311d [FIX] Fixing invitation wizard
bzr revid: rim@openerp.com-20140408150652-i1j4n5t9q1ip5m9c
2014-04-08 17:06:52 +02:00
Richard Mathot (OpenERP) 356f35f9b5 [DESTRUCTION] The commit that breaks everything...
(removing fields that won't be used anymore -- fixed code will follow)

bzr revid: rim@openerp.com-20140408145118-h55ntgml2frp0lt9
2014-04-08 16:51:18 +02:00
Richard Mathot (OpenERP) d59fdd8105 [IMP] Fixing views according to mockups
bzr revid: rim@openerp.com-20140408143912-7lctcrrp9cm0kg3r
2014-04-08 16:39:12 +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