Commit Graph
29 Commits
Author SHA1 Message Date
Thibault Delavallée efd55ab8a5 [REF] various: rename openerp node to odoo in xml files 2016-08-10 15:48:10 +02:00
Nicolas Martinelli 1dbccc8215 [IMP] analytic: adaptation due to the new Sale module
Major changes:
- Remove reports
- Simplify models

Reason: complete rewrite of the Sale module.

Responsible: fp, dbo, nim
2015-08-27 18:10:18 +02:00
Christophe Simonis 3ea8d14d2b [FIX] account,analytic: move test from account to analytic 2015-07-22 19:11:44 +02: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
cod-odoo a301b4c7fc [MOVE] account: moved account/project files to analytic or account, depending on which module the moved code belongs to. This allows to remove references to project in account module. Also added some improvements in project when deleting a project (delete account if void) or when deleting an account (delete project if void). 2014-08-04 13:23:46 +02:00
Xavier Morel 7a2d912964 [REM] bunch of nonsensical @model + @ref
bzr revid: xmo@openerp.com-20130429124333-p1h11fpy04y3sljy
2013-04-29 14:43:33 +02:00
Alexis de Lattre 5101771cd9 Harmonize the noupdate flag on security XML files :
- ir.rule objects are noupdate="1"
- all other objects are noupdate="0"

bzr revid: alexis@via.ecp.fr-20120713170838-pjsysliyt6twazrc
2012-07-13 19:08:38 +02:00
Jagdish Panchal (Open ERP) d5b91d4fde [IMP] Rename Budgets Management to Budget Management in account config wizard, change depends of account_accountant module and put Analytic Accounting group from Usability to Hidden group in user form
bzr revid: jap@tinyerp.com-20120426102942-gkyl87lp6gpfq53x
2012-04-26 15:59:42 +05:30
Raphael Collet ba1454149c [IMP] groups: remove auto-inclusion of admin in groups, and make the inclusion explicit in groups
bzr revid: rco@openerp.com-20120404090830-nteimn2kvz8nkk7h
2012-04-04 11:08:30 +02:00
Raphael Collet 0c1021806d [MERGE] trunk-user-groups-rco: add category_id to groups
bzr revid: rco@openerp.com-20111213141949-ohvn0c9iq6tcl7jj
2011-12-13 15:19:49 +01:00
Fabien Pinckaers f27318c8af [IMP] Security Rule: removed duplicates due to inheritancies of groups
bzr revid: fp@tinyerp.com-20111212181113-mhnnbps3ip8ls6pp
2011-12-12 19:11:13 +01:00
Raphael Collet c0755c4218 [IMP] account, analytic, auction: add group categories
bzr revid: rco@openerp.com-20111212133523-ea0r5b47mc5tddl7
2011-12-12 14:35:23 +01:00
mtr 5bac583ce7 [FIX] analytic,hr,hr_evaluation,hr_expense,hr_recruitment: added multi-company access rules
lp bug: https://launchpad.net/bugs/788139 fixed

bzr revid: mtr@mtr-20110608072935-blig6ejq1oa36un5
2011-06-08 12:59:35 +05:30
Olivier Dony beac68b7d2 [REVERT] all: revert incorrect change of default ir.rules for multi-company
By default only records belonging to the user's company or descendant companies
should be visible. The original patch introduced visibility of records
from ancestor companies, which should be suited only for a few cases, such
as res.patner.
Original revision: 3164.24.175  sbh@tinyerp.com-20101223095216-n6psmzicdcs8is8x

lp bug: https://launchpad.net/bugs/720175 fixed

bzr revid: odo@openerp.com-20110228135754-6skiy4fb9dg54xb6
2011-02-28 14:57:54 +01:00
Sbh (OpenERP) abd780fd52 [Fix] : correct security rule of company_id
bzr revid: sbh@tinyerp.com-20101223095216-n6psmzicdcs8is8x
2010-12-23 15:22:16 +05:30
Fabien Pinckaers 37680303df [IMP] ir.rule reviewed
bzr revid: fp@tinyerp.com-20101018092840-7a6wv2vw2s6a1a2s
2010-10-18 11:28:40 +02:00
Fabien Pinckaers 256bca359d [IMP] better useability
bzr revid: fp@tinyerp.com-20101009160143-rrcfgoyudey22zv4
2010-10-09 18:01:43 +02:00
ARA (OpenERP) 3a03070a9e [REM] Analytic: Remove access rights from analytic group
bzr revid: ara@tinyerp.com-20101004111801-o8dw16eiiprukkou
2010-10-04 16:48:01 +05:30
vra 364b82dc09 [IMP] account,analytic: shifted product related access rights for analytic group to account module.
bzr revid: vra@tinyerp.com-20100914122438-npaqxmpfqiemufgv
2010-09-14 17:54:38 +05:30
vra 82035f2ffa [FIX] account, analytic: shifted the account related access rights to account module.
bzr revid: vra@tinyerp.com-20100914112946-6166xvm1lp1xy881
2010-09-14 16:59:46 +05:30
qdp-launchpad@tinyerp.com 85d243fb44 [MERGE] merge with same branch
bzr revid: qdp-launchpad@tinyerp.com-20100913155446-gm9b07hb4fnd5yyo
2010-09-13 17:54:46 +02:00
qdp-launchpad@tinyerp.com c42543ec5b [IMP] analytic: better name for ir.rule
bzr revid: qdp-launchpad@tinyerp.com-20100913152323-z9s377w2d39toeiq
2010-09-13 17:23:23 +02:00
vra 92a04d862c [REM][IMP] account, analytic: remove extended group from analytic related menu and improved analytic object.
bzr revid: vra@tinyerp.com-20100908061652-e2e5nabdo3uflfxv
2010-09-08 11:46:52 +05:30
vra 039ef25d0d [ADD] added access rights for Analytic Accounting group including menus.
[REM] Extended group for analytic related menus.
[FIX] Analytic Entries date Order.
[FIX] Assigning sale price with proper sign in product_id onchange in analytic line.

bzr revid: vra@tinyerp.com-20100907115728-n09gkjycdr32ej77
2010-09-07 17:27:28 +05:30
pap (openerp) 396d5c4a21 [ADD] Analytic: added Analytic group on analytic account and put that group on menus related to analytic accounting, removed access rules for anaytic accounting
bzr revid: pap@tinyerp.co.in-20100903124403-o1gbrd38nc047vhx
2010-09-03 18:14:03 +05:30
pap (openerp) 6dd10786ff [ADD] Account: added groups on analytic accounting and added access rights for it
bzr revid: pap@tinyerp.co.in-20100901073017-w54ys7g3v1qzr7tp
2010-09-01 13:00:17 +05:30
vra c1dbc408c5 [ADD] account, account_payment, analytic: added company related record rules for some objects and also added company field.
bzr revid: vra@tinyerp.com-20100820113218-5xg58scsgjavb6fg
2010-08-20 17:02:18 +05:30
Fabien Pinckaers 9c6ef76945 [IMP] task search view
bzr revid: fp@tinyerp.com-20100206184737-4mbipft7xk3cv5f2
2010-02-06 19:47:37 +01:00
HDA (OpenERP) 904de67cf5 rename report_analytic_planing to project_planing and removed dependancy of account from project and add analytic module + improvement in account_anglo_saxon
bzr revid: hda@tinyerp.com-20100205150927-ztj0oaw3d3mv4f34
2010-02-05 20:39:27 +05:30