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
Leonardo Donelli
4a0b13ed92
[REF] remove vim modelines and resulting trailing blank lines
...
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Fabien Meghazi
faa09da325
Removed version="7.0" from form views
2014-06-12 09:09:59 +02:00
jke-openerp
f13f1ebbce
WMS usability (part) + WMS Merge PO
...
bzr revid: jke@openerp.com-20131002134242-w76s6p03p66wbk16
2013-10-02 15:42:42 +02:00
Quentin (OpenERP)
ea03ed65b6
[FIX] purchase, accont_anglo_saxon: fixed the creation of invoice from PO lines so that it reuse the _prepare_inv_line() method. This code factorization is needed in order to work with account_anglo_saxon module (before the anglo saxon accounting mode was ignored if the PO's invoicing method was 'generate invoices from PO lines')
...
bzr revid: qdp-launchpad@openerp.com-20130624090741-eyy2r22yuti0gqit
2013-06-24 11:07:41 +02:00
Randhir Mayatra (OpenERP)
c4cbd56be6
[IMP] remove unnecessary chnages
...
bzr revid: rma@tinyerp.com-20130527111216-dyo8qprm6zh5u3cj
2013-05-27 16:42:16 +05:30
Randhir Mayatra (OpenERP)
c96dc3303f
[IMP] code improve
...
bzr revid: rma@tinyerp.com-20130523110343-owr25x1mmr2joheu
2013-05-23 16:33:43 +05:30
Randhir Mayatra (OpenERP)
821e05f477
[IMP] upadte the currency in invoices
...
bzr revid: rma@tinyerp.com-20130523104820-1qp3zcd8oubz2329
2013-05-23 16:18:20 +05:30
Vo Minh Thu
e69326ee3b
[REF] removed explicit model instanciations.
...
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Vo Minh Thu
5639a52431
[MERGE] use new report API.
...
bzr revid: vmt@openerp.com-20130328121009-r3n63gmhfkv0dnby
2013-03-28 13:10:09 +01:00
Vo Minh Thu
5f73b48816
[REF] purchase: removed openerp.pooler imports.
...
bzr revid: vmt@openerp.com-20130327114111-gxtnb95f59m2k009
2013-03-27 12:41:11 +01:00
Vo Minh Thu
9bb5ee90e4
[IMP] removed unused netsvc imports.
...
bzr revid: vmt@openerp.com-20130222161029-zecwro75yra2vz0d
2013-02-22 17:10:29 +01:00
Olivier Dony
49597f0e66
[MERGE] *: improved english wording, suggestions courtesy of OpenERP Community
...
bzr revid: odo@openerp.com-20121221164808-kdjrtcbgma4dr3on
2012-12-21 17:48:08 +01:00
Olivier Dony
03b6acd13d
[MERGE] Access inherited product fields on the product directly rather than template, courtesy of Alexis de Lattre (Akretion)
...
It makes the code a little more straightforward and does not hurt.
bzr revid: odo@openerp.com-20121218225015-6r9ydxjlh147m3z1
2012-12-18 23:50:15 +01:00
Vo Minh Thu
ca89ae8f71
[IMP] use the openerp namespace.
...
bzr revid: vmt@openerp.com-20121206151316-u1eqx41ltjpz2lrd
2012-12-06 16:13:16 +01:00
Vo Minh Thu
e7f4891d46
[IMP] use the openerp namespace.
...
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Quentin (OpenERP)
a68e5f9041
[MERGE] merged the branch with supplier payment term from alexis de Lattre (Akretion). Thanks for the nice proposal
...
bzr revid: qdp-launchpad@openerp.com-20121130171130-dugntyqmjunwr20m
2012-11-30 18:11:30 +01:00
Alexis de Lattre
cad4abe56c
Merge with addons/trunk revno 8168.
...
Adapt demo data to the rename of partner XML IDs in server/trunk.
bzr revid: alexis@via.ecp.fr-20121129222645-lm5ujxf4a1a83aoz
2012-11-29 23:26:45 +01:00
Antonin Bourguignon
1653332080
[MERGE] trunk
...
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
2012-10-02 12:29:15 +02:00
Vo Minh Thu
9822629548
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120813160657-ilujdek8ys4fzhp9
2012-08-13 18:06:57 +02:00
Twinkle Christian (OpenERP)
fc1b1749a8
[IMP]Remove type field from the modules
...
bzr revid: tch@tinyerp.com-20120809060516-zgx3gdyv6wdshfyw
2012-08-09 11:35:16 +05:30
Antonin Bourguignon
59aa37f0e4
[IMP] all the warning messages now start with 'Warning\!' (not 'Warning' or 'Warning \!')
...
bzr revid: abo@openerp.com-20120807113414-7mryqyt3jnq8shsa
2012-08-07 13:34:14 +02:00
Antonin Bourguignon
8a64e7580a
[IMP] all the error messages now start with 'Error\!' (not 'Error' or 'Error \!')
...
bzr revid: abo@openerp.com-20120807113137-44vehm0mthqawlo3
2012-08-07 13:31:37 +02:00
Alexis de Lattre
c11754eaa9
Merge with addons-trunk revno 7150
...
Adapt views accordingly
bzr revid: alexis@via.ecp.fr-20120802134012-fjk20wld5rv9v45i
2012-08-02 15:40:12 +02:00
Alexis de Lattre
f9fe637803
Remplace all occurences of my_browse_rec.product_id.product_tmpl_id.field to my_browse_rec.product_id.field
...
bzr revid: alexis@via.ecp.fr-20120727015202-7fylff5jr26sgxez
2012-07-27 03:52:02 +02:00
pso (OpenERP)
78c6d6e5c6
[IMP] Improved warning messages for purchase module
...
bzr revid: pso@tinyerp.com-20120725101229-p6pohqemj1tdenb3
2012-07-25 15:42:29 +05:30
pso (OpenERP)
8da5bec19e
[IMP] Improved warning messages/exceptions for purchase modules
...
bzr revid: pso@tinyerp.com-20120717113057-gv6lxsnzpjzkbtdn
2012-07-17 17:00:57 +05:30
Fabien Pinckaers
6eaa79227e
[IMP] merge note&name on purchase lines
...
bzr revid: fp@openerp.com-20120714205150-c5qjjjyuovbyxac5
2012-07-14 22:51:50 +02:00
Alexis de Lattre
42ffccfa96
Add a "Supplier Payment Term" on res.partner
...
Add payment term on purchase.order
bzr revid: alexis@via.ecp.fr-20120711111434-ih20ohy81bynn1wd
2012-07-11 13:14:34 +02:00
Raphael Collet
5133bee1d5
[FIX] in form views, replace class 'oe_highlight_on_dirty' by 'oe_highlight'
...
bzr revid: rco@openerp.com-20120629083024-rqhtbf9melkygg0m
2012-06-29 10:30:24 +02:00
Jigar Amin - OpenERP
11224704cd
[FIX] purchase*, sale, share, report_webkit, buton cancel
...
bzr revid: jam@tinyerp.com-20120627134530-141mzncfffkmjrom
2012-06-27 19:15:30 +05:30
Twinkle (OpenERP)
471037495c
[IMP]Apply css class flow on wizards buttons
...
bzr revid: tch@tinyerp.com-20120626063119-5i93di16milljxap
2012-06-26 12:01:19 +05:30
Twinkle (OpenERP)
0e97cefe9e
[IMP]Improve wizard button
...
bzr revid: tch@tinyerp.com-20120625100901-ucjbttxod55erqmf
2012-06-25 15:39:01 +05:30
Twinkle (OpenERP)
660cc67256
[IMP]Added highlight button on wizard
...
bzr revid: tch@tinyerp.com-20120620104923-z1hty740vn160fg9
2012-06-20 16:19:23 +05:30
Twinkle (OpenERP)
26ef8c33e2
[IMP]Purchase:Add group tag in purchase
...
bzr revid: tch@tinyerp.com-20120619084532-g5nbywx9132ygywu
2012-06-19 14:15:32 +05:30
Twinkle (OpenERP)
5db031806b
[IMP]Purchase:Remove cancel button from wizard and added active class flow on buttoncd
...
bzr revid: tch@tinyerp.com-20120618062029-byrsndkcfu5iv34f
2012-06-18 11:50:29 +05:30
Fabien Pinckaers
1f885950b4
[FIX] headers
...
bzr revid: fp@tinyerp.com-20120609222849-gm9loztzarjyn7pl
2012-06-10 00:28:49 +02:00
Fabien Pinckaers
7e5c7916a2
[IMP] form view, removed project_planning
...
bzr revid: fp@tinyerp.com-20120609194946-5pgqdhkf1mmrleox
2012-06-09 21:49:46 +02:00
Fabien Pinckaers
64a9321d56
[IMP] footer on forms
...
bzr revid: fp@tinyerp.com-20120710164011-unqi1okf2uu8yhts
2012-07-10 18:40:11 +02:00
Mayur Maheshwari (OpenERP)
c71446957f
[MERGE]: Merge with lp:openobject-addons
...
bzr revid: mma@tinyerp.com-20120426091833-ocminkwzjkntdkde
2012-04-26 14:48:33 +05:30
Raphael Collet
2076ad19fb
[IMP] purchase, purchase_analytic_plans, purchase_requisition: remove group_extended
...
bzr revid: rco@openerp.com-20120425132202-yqxsma0z80hgd6s4
2012-04-25 15:22:02 +02:00
Mayur Maheshwari (OpenERP)
9e59ce8812
[IMP]all: Improve all typos
...
bzr revid: mma@tinyerp.com-20120424060532-ohrf0sxwq8rpq6ls
2012-04-24 11:35:32 +05:30
Raphael Collet
dade28f47d
[IMP] config wizards: remove ir.actions.todo that are no longer useful
...
bzr revid: rco@openerp.com-20120403132618-qtwtg6aafig61wu4
2012-04-03 15:26:18 +02:00
Bhumika (OpenERP)
879ddb6130
[IMP]: remove unused field
...
bzr revid: sbh@tinyerp.com-20120307102445-m12lvui331hy0ov2
2012-03-07 15:54:45 +05:30
Numerigraphe - Lionel Sausin
2d2a44dcf2
[FIX] unmutable default in the remaining modules
...
[REF] coding style consistency
lp bug: https://launchpad.net/bugs/525808 fixed
bzr revid: ls@numerigraphe.fr-20120305184003-er00xtj9vtcw7gna
2012-03-05 19:40:03 +01:00
Bharat Devnani (OpenERP)
3662f7e5db
[REM] removed res.partner.address reference from purchase module, just need to solve 'test/process/edi_purchase_order.yml' yml and its references
...
bzr revid: bde@tinyerp.com-20120305132539-1u8zok2ccy6csemu
2012-03-05 18:55:39 +05:30
ksa (OpenERP)
d9099165a3
[IMP]:change the pot file and string
...
bzr revid: ksa@tinyerp.com-20120125101720-c55eykovr20j7obu
2012-01-25 15:47:20 +05:30
ksa (OpenERP)
31db4ea87c
[FIX]:string correction for purchase
...
lp bug: https://launchpad.net/bugs/916485 fixed
bzr revid: ksa@tinyerp.com-20120117100836-38ecauwmtgtu2kdv
2012-01-17 15:38:36 +05:30
Stephane Wirtel
012164a0ab
[MERGE]
...
bzr revid: stw@openerp.com-20111003120940-e0i7cgvcxvnxxgf1
2011-10-03 14:09:40 +02:00
Fabien Pinckaers
f5a95f40fe
[IMP] purchase invoice control wizard improvemens
...
bzr revid: fp@tinyerp.com-20111002154802-pnl31a0ulf688jcp
2011-10-02 17:48:02 +02:00