Commit Graph
63 Commits
Author SHA1 Message Date
Géry Debongnie 4fdf74fe21 [IMP] web+addons: improvement to module system
The module system needs to know the dependencies of a given module
before executing the function.  This is why the dependencies were
defined once in an array, and then were described one more times in the
call to require.

But a trick can simplify this: the boot function can parse the string
representation of the module and extract the calls to require from it.
It is more work for the processor, but it leads to simpler module
definitions.
2015-03-18 09:23:37 +01:00
Géry Debongnie 2ebe3076d2 [REF] hr: update to the new module system 2015-03-18 09:01:52 +01:00
Christophe Simonis 6f841038f3 [MERGE] forward port of branch 8.0 up to 3735394 2015-01-22 18:47:13 +01:00
Olivier Dony 495ec92251 [I18N] Update translations from Launchpad 8.0 branches 2015-01-21 15:36:54 +01:00
Olivier Dony 39f00b3637 [I18N] Update translation templates with latest terms
Total new terms: 270
Total deleted terms: 82
Total identical terms: 19653
Old total number of terms: 19735
New total number of terms: 19923
2015-01-21 15:31:22 +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
Richard Mathot 7b763176ba [REM] modelines: Gotta catch 'em all 2015-01-08 11:38:58 +01:00
Olivier Dony a6d24db305 [I18N] Update translations from Launchpad 8.0 branches 2014-11-19 17:49:12 +01:00
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Martin Trigaux 56b3db8219 [IMP] gamification: usability and shit
Challenge
- 'Reward as soon as every goal is reached' box checked by default (most of the time people want this behaviour, few special cases were do not)
- Click on challenge kanban opens goal list instead of challenge form
- Add button 'Start Challenge' clicking on statusbar is not intuitive

Badge
- When creates a challenge from badge view, set by default badge to 'For Every Succeding User' field
- replace filter 'Current' vs 'Passed' by 'Running' (in progress and done with not reached end date) vs 'Done' (done & failed without end date or end date passed)

Goal
- list of badge on employee form not the first tab
2014-09-18 11:12:15 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +02:00
Fabien Pinckaers 8aca457e34 [IMP] Updated website urls on modules and info page 2014-08-26 21:40:18 +02:00
Olivier Dony 50ef63881a [I18N] Update 8.0 translation with latest source code 2014-08-14 17:01:54 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Fabien Meghazi 1c4e2cfd22 [IMP] bundlify addons (except website)
bzr revid: fme@openerp.com-20140424172129-ze74eaz2eaidmxhm
2014-04-24 19:21:29 +02:00
Martin Trigaux a1b6b4f1ac [ADD] gamification: i18n translation files
bzr revid: mat@openerp.com-20140213151208-l452x2lf2g4dyhdj
2014-02-13 16:12:08 +01:00
Martin Trigaux b8b6a3651a [FIX] gamification: convert missed type to definition filter (goal history menu will group by user and definition)
bzr revid: mat@openerp.com-20140207103357-7v8seoqgq9rokhhi
2014-02-07 11:33:57 +01:00
Martin Trigaux 344452e73a [FIX] hr_gamification: add auto_install to attribute, when get gamification and hr, automatically installed
bzr revid: mat@openerp.com-20140207102029-6y45r4cmrc1h8kx7
2014-02-07 11:20:29 +01:00
Martin Trigaux 13bfaef3a3 [FIX] gamification: remove old calls to action_start
bzr revid: mat@openerp.com-20131224151543-oofn9wc2w3933gjy
2013-12-24 16:15:43 +01:00
Martin Trigaux f4e42879d3 [REF] gamification: rename user_from_id -> sender_id, move constants
bzr revid: mat@openerp.com-20131223160143-8mgmwrgf6i3wo8ku
2013-12-23 17:01:43 +01:00
Martin Trigaux c0eef31160 [REF] gamification: add user_from_id on badge, remove outdated-doc, remove useless message_post call
bzr revid: mat@openerp.com-20131223155404-h4in4ocr8jakq3ff
2013-12-23 16:54:04 +01:00
Martin Trigaux 90dfa5895d [FIX] gamification: send badge on user, fix function field
bzr revid: mat@openerp.com-20131218140333-nipcc21z5snhac1c
2013-12-18 15:03:33 +01:00
Martin Trigaux 938a07a361 [FIX] gamification: check grant badges are now sistematic except for superuser (always possible)
bzr revid: mat@openerp.com-20131218130039-y5vp0wt48ejd3jrh
2013-12-18 14:00:39 +01:00
Martin Trigaux 553e85f369 [FIX] gamification: move manifest order and remove useless browse
bzr revid: mat@openerp.com-20131218121459-zlfumwysdx9qm7d9
2013-12-18 13:14:59 +01:00
Martin Trigaux 5acd144c81 [FIX] gamification: rename view files
bzr revid: mat@openerp.com-20131218115227-39ii3so3uupc7vp8
2013-12-18 12:52:27 +01:00
Martin Trigaux b63950e0dc [REF] gamification: mode to adequate folders
bzr revid: mat@openerp.com-20131218085907-6501sfdif2rk4a0b
2013-12-18 09:59:07 +01:00
Martin Trigaux 122c15c48d [REF] gamification: pretty much changing half of the code to make tde happy...
bzr revid: mat@openerp.com-20131217161541-oxsgy7gmko2x6qui
2013-12-17 17:15:41 +01:00
Martin Trigaux 3e028490f6 [IMP] gamification: licency stuff
bzr revid: mat@openerp.com-20131217104813-7nh422l1d85s6y51
2013-12-17 11:48:13 +01:00
Martin Trigaux 354190b44e [IMP] gamification: add portal_gamification module to add security rules
bzr revid: mat@openerp.com-20131216150726-su27319fvvxevam6
2013-12-16 16:07:26 +01:00
Martin Trigaux cf39b18dc0 [FIX] hr_gamification: use correct granting method
bzr revid: mat@openerp.com-20131216131824-webc2alxly7l5z83
2013-12-16 14:18:24 +01:00
Martin Trigaux a3a23bff53 [FIX] hr_gamification: hr officers can see any goals
bzr revid: mat@openerp.com-20131212103115-1i3tn2cez2iee8e3
2013-12-12 11:31:15 +01:00
Martin Trigaux 828950cf93 [FIX] gamification: send badge as superuser
bzr revid: mat@openerp.com-20130621090139-dptxjh66ocy10bi2
2013-06-21 11:01:39 +02:00
Quentin (OpenERP) a8eb9301e4 [REF] gamification: code review of badge.py
bzr revid: qdp-launchpad@openerp.com-20130603160314-zprlgye2rpd140pv
2013-06-03 18:03:14 +02:00
Martin Trigaux b6f78b3401 [FIX] make hr_gamification removable
bzr revid: mat@openerp.com-20130424091411-qo45cw3nkby195pc
2013-04-24 11:14:11 +02:00
Martin Trigaux a92cc45cc3 [IMP] order and domain
bzr revid: mat@openerp.com-20130424085238-k8q6uess92xl2q5u
2013-04-24 10:52:38 +02:00
Martin Trigaux 006a266396 [IMP] on change, doc and catergory
bzr revid: mat@openerp.com-20130423155532-yxqq2nchuaeyxste
2013-04-23 17:55:32 +02:00
Martin Trigaux 4fb6e9b682 [IMP] display user's badges on employee
bzr revid: mat@openerp.com-20130419154817-rq09s1f5nl6ryhka
2013-04-19 17:48:17 +02:00
Martin Trigaux 263124a6f3 [ADD] check rewards for challenges
bzr revid: mat@openerp.com-20130419150523-0oyf1pav9tn552o1
2013-04-19 17:05:23 +02:00
Martin Trigaux b7a6b6e130 [ADD] display single kanban
bzr revid: mat@openerp.com-20130419102245-pri7z7tdyh7xe5c9
2013-04-19 12:22:45 +02:00
Martin Trigaux b2bb03ba4a [FIX] correct actions
bzr revid: mat@openerp.com-20130416134847-celf4nbl7748vnj5
2013-04-16 15:48:47 +02:00
Martin Trigaux 0b0c24a636 [REF] moving to only hr_gamification module
bzr revid: mat@openerp.com-20130416124558-p40tkw8mgr4e7v04
2013-04-16 14:45:58 +02:00
Martin Trigaux b18bc57919 [ADD] use sparklines
bzr revid: mat@openerp.com-20130412152150-8679huigt6cfmool
2013-04-12 17:21:50 +02:00
Martin Trigaux 8f05129bcd [IMP] display sent count instead of remaining
bzr revid: mat@openerp.com-20130412140958-nnsc7io1cs57qdq6
2013-04-12 16:09:58 +02:00
Martin Trigaux ef8ab87cff [IMP] better UI
bzr revid: mat@openerp.com-20130412135233-wek9hcbnufost0tf
2013-04-12 15:52:33 +02:00
Martin Trigaux d5c4f14a1a [IMP] badge to employee actions
bzr revid: mat@openerp.com-20130412133606-60kb4s026vfsrija
2013-04-12 15:36:06 +02:00
Martin Trigaux 252365095a [IMP] better badge views and checks
bzr revid: mat@openerp.com-20130412085452-mnecqo80cgmo2ecs
2013-04-12 10:54:52 +02:00
Martin Trigaux 28761467fc [IMP] better UI
bzr revid: mat@openerp.com-20130411151132-vsk2cnff5uhqmzas
2013-04-11 17:11:32 +02:00
Martin Trigaux d4ccdb46de [IMP] better views
bzr revid: mat@openerp.com-20130411132438-x38ngml9sdi0uwb2
2013-04-11 15:24:38 +02:00
Martin Trigaux d20cbcf9f4 [REF] remove public attributes for badges
bzr revid: mat@openerp.com-20130411102418-vp9wng9ryzzggcgo
2013-04-11 12:24:18 +02:00