summaryrefslogtreecommitdiff
path: root/addons/subscription/subscription.py
AgeCommit message (Collapse)Author
2016-01-20[REF] subcription: reorganized the module files as per newapi conventionDevendraK
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- 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-01-16[IMP] Cleanup and refactoring of exception handlingGoffin Simon
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.
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-07-06[MERGE] new v8 api by rcoRaphael Collet
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-06-25[REM] Unnecessary `size` parameters on char fieldsJaydeep Barot
2013-06-13[MERGE] with trunkForam Katharotiya (OpenERP)
bzr revid: fka@tinyerp.com-20130613071422-9iw22gkm33epbkpb
2013-04-29[IMP]Removed space before Exclamation marks [!]ggh-openerp
bzr revid: ggh@tinyerp.com-20130429071557-vnxo5nni03vc886j
2013-04-15[REF] removed explicit model instanciations.Vo Minh Thu
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-03-29[IMP] general: use registry[X] instead registry.get(X) when X is dynamicRaphael Collet
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-21[IMP] subscription: changes string for field 'notes' in model ↵Ajay Chauhan (OpenERP)
'subscription.subscription' bzr revid: cha@tinyerp.com-20130321052849-bpxq2bye0flzj28p
2013-03-20[FIX] subscription: prevent lockup during cron job executionOlivier Dony
Due to the way cron jobs are executed in multi-process environments, the cron arbiter holds an exclusive lock on the cron task row in the database. During the course of the subscription cron jobs execution they attempt to alter a record that has a FK towards the cron task row, effectively deadlocking the whole cron processing thread. The fix is rather hackish: remove the explicit FK constraint from the subscription model towards ir.cron - this prevent PostgreSQL from requesting an exclusive lock and triggering a deadlock. This is only a temporary solution, the subscription module should be rewritten for the next stable release. bzr revid: odo@openerp.com-20130320153430-bho6ou8b7ziohcb0
2013-03-20[IMP] subscription: change string for field 'note' in model ↵Ajay Chauhan (OpenERP)
'subscription.subscription' bzr revid: cha@tinyerp.com-20130320094748-fam2fosjsctfziyl
2013-03-13[IMP] subscription: change string of field 'note' to solve import issue of ↵Ajay Chauhan (OpenERP)
'subscriptions bzr revid: cha@tinyerp.com-20130313055937-n85y0cr963f5zzlm
2012-12-06[IMP] use the openerp namespace.Vo Minh Thu
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-09-30[MERGE] subscription readonly if runningFabien Pinckaers
bzr revid: fp@tinyerp.com-20120930120059-0vyt3vmy9yoa3ecs
2012-09-17[FIX] Stop the subscription.Vijaykumar Baladaniya
bzr revid: vba@tinyerp.com-20120917100356-qxo6yoxe3p2710zs
2012-08-07[IMP] all the error messages now start with 'Error\!' (not 'Error' or 'Error ↵Antonin Bourguignon
\!') bzr revid: abo@openerp.com-20120807113137-44vehm0mthqawlo3
2012-05-04[IMP]:improved titles State by Status everywhereSaurang Suthar (OpenERP)
bzr revid: ssu@tinyerp.com-20120504115748-2vd1dns7bxptg384
2012-02-02[FIX] subcription: set _get_document_type method for document_id fieldKuldeep Joshi (OpenERP)
lp bug: https://launchpad.net/bugs/924327 fixed bzr revid: kjo@tinyerp.com-20120202113216-qpbzcz0fmot9wf3f
2011-10-02[FIX] subscription bad raiseFabien Pinckaers
bzr revid: fp@tinyerp.com-20111002161940-r2b0fj0uut75ay1e
2011-09-17[FIX]Fabien Pinckaers
bzr revid: fp@tinyerp.com-20110917121817-vusb4yvf6d6dvait
2010-12-13[REF]: Added remaining context changes in _constraints. Removed unnecessary ↵uco (OpenERP)
checking for context from methods. bzr revid: uco@tinyerp.com-20101213064309-vg36f1510xv2f8zb
2010-12-06[MERGE]: Merged with trunk-addons.uco (OpenERP)
bzr revid: uco@tinyerp.com-20101206131102-z2xzz8eshkswo00q
2010-11-23[REF]: Replace the condition 'if not context' with 'if context is None'.uco (OpenERP)
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
2010-11-22[IMP]: Added context=None in function argument for rest modules.uco (OpenERP)
bzr revid: uco@tinyerp.com-20101122103753-idv9fdaqc28rvugu
2010-11-15[Fix] project,resource,subscription: Fix wrong helptext for field activesbh (Open ERP)
bzr revid: sbh@tinyerp.com-20101115111222-x6hb9v8o17z2q8ez
2010-11-08[FIX] purchase, sale, subscription: usability issuesqdp-launchpad@tinyerp.com
bzr revid: qdp-launchpad@tinyerp.com-20101108130435-y9kj7bhu8ttida5c
2010-10-15[IMP] : Removed mx.DateTime and used datetime object.Harry (Open ERP)
bzr revid: uco@tinyerp.com-20101015140153-tyy27fby84tijohb
2010-09-21[MOD/IMP] idea, subscription : Improvements in tooltipVir (Open ERP)
bzr revid: vir@tinyerp.com-20100921070736-pdszbx65t36ha1w3
2010-09-06[ADD/MOD] subscription : tooltip added and menu name changedVir (Open ERP)
bzr revid: vir@tinyerp.com-20100906123440-knm5kys9dzvwd2zt
2010-07-02[IMP] event, subscription : Usability improvementsVir (Open ERP)
bzr revid: vir@tinyerp.com-20100702083250-k0x6clkog8iqjo6f
2010-05-19[FIX] 3 security rules, [IMP] object names for logsFabien Pinckaers
bzr revid: fp@tinyerp.com-20100519183232-9zieyfnah526r312
2010-01-12[FIX] Change the year of the copyrightStephane Wirtel
bzr revid: stephane@openerp.com-20100112091839-a6p7tenhb4e4zxyx
2009-12-21[IMP]: Generalization of tooltips: Added tooltips for active fielduco (OpenERP)
bzr revid: uco@tinyerp.co.in-20091221122132-hkesf2dy48lpdvum
2009-11-28[MERGE] merge from lp:~openerp/openobject-addons/5.0/Harry (Open ERP)
bzr revid: hmo@tinyerp.com-20091128110526-yen7frgcg9nkbn7h
2009-11-23[ADD]: Added tooltips for all state fields.uco (OpenERP)
bzr revid: uco@tinyerp.co.in-20091123135238-oadv1oyefpsi9631
2009-11-12[FIX] Subscription : Disallowed to change the Object linked to the document ↵Jay (Open ERP)
type. lp bug: https://launchpad.net/bugs/435298 fixed bzr revid: jvo@tinyerp.com-20091112091453-wus13ocpep0rmgmp
2009-10-14Changed licencing termsPSO(OpenERP)
bzr revid: hda@tinyerp.com-20091014111534-1vtk21rz8byhszzf
2009-10-13changed encoding to coding in all py filesChristopheChauvet(syleam)
lp bug: https://launchpad.net/bugs/357182 fixed bzr revid: hda@tinyerp.com-20091013055837-3ntnbe8b938xmk97
2009-09-23[FIX][CRITICAL]subscription: crash subscription processHarry (Open ERP)
lp bug: https://launchpad.net/bugs/435178 fixed bzr revid: hmo@tinyerp.com-20090923125231-skjg2hkhw3tbvdsz
2009-01-04[IMP] Update the copyright to 2009Stephane Wirtel
bzr revid: stephane@tinyerp.com-20090104221250-55q32ayj2t8kzb2k
2008-11-03passing modules in GPL-3Christophe Simonis
bzr revid: christophe@tinyerp.com-20081103191856-jhcivvwb16fvz2os
2008-08-29ModifsFabien Pinckaers
bzr revid: fp@tinyerp.com-20080828230810-nt2h294l3w6ox3iy
2008-08-21Renamed Model to ObjectFabien Pinckaers
bzr revid: fp@tinyerp.com-20080821135055-ijznyq0mftrcisy8
2008-07-23add encoding comment and vim commentChristophe Simonis
bzr revid: christophe@tinyerp.com-20080723144147-77o5t9adx26a84lt
2008-07-22replace tabs with 4 spacesChristophe Simonis
bzr revid: christophe@tinyerp.com-20080722151128-f5zy75tsn8pgtndd
2008-07-08* translation of nearly all exceptionsChristophe Simonis
* the export of translations per module take only the files of these modules bzr revid: chs@tinyerp.com-77721e34d87043c4008239f004c7c616f6d4dc82
2008-06-16add Copyright and GPL license into the Header of Python filesstw
bzr revid: stw-d9a6d631f7cfdab5a120a6b0104ce2dbf8644841
2008-06-16add the svn:keywords Id on all .py, .xml, .batstw
bzr revid: stw-3687e75a6129c56b847ba26d6b256cdafeb444ab