summaryrefslogtreecommitdiff
path: root/addons/document/document.py
AgeCommit message (Collapse)Author
2015-07-12[REM] document directoriesAntony Lesuisse
Keeping the attachments widget on form views and document indexation (currently limited to pdf/odt).
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-04-27[MERGE] forward port of branch 8.0 up to cf4d14cChristophe Simonis
2015-04-27[MERGE] forward port of branch saas-3 up to 09b277cDenis Ledoux
2015-04-27[MERGE] forward port of branch 7.0 up to 3e7d3c7Denis Ledoux
2015-04-21[FIX] document: polynomial time reordering of document idsVincent Vinet
Triggered every time on list views as the list view uses a search_count (filtered but unlimited) to display pagination. closes #6397
2015-03-26[MERGE] forward port of branch saas-3 up to ce69064Christophe Simonis
2015-03-26[MERGE] forward port of branch 7.0 up to 2a0c018Christophe Simonis
2015-03-26[FIX] document : keep order during the search of ir.attachmentJérome Maes
Backport of 16fa24d52258245af4ee9100666bae6ebe664046
2015-03-06[FIX] Missing possibility to define a file_type on creation/write of aWolfgang Taferner
document which leads to an error message in case the indexer could not retrieve the content type automatically.
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.
2015-01-07[FIX] document : keep order during the search of ir.attachmentJérome Maes
2014-12-31[REF] remove vim modelines and resulting trailing blank linesLeonardo Donelli
Let 2015 be a year without modelines! cf #4174
2014-12-11[IMP] ir.attachment : move the fields index_content (from document), ↵Jérome Maes
mimetype and datas_checksum (from website) to base. In base, the mimetype is computed with the Magic python lib (if installed, else with a custom function using magic number), and the index_content is an implementation of strings unix command. In document, index_content is still computed with the indexer of document module.
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-07-05[MERGE] Forward-port saas-5 up to d9cda97Olivier Dony
2014-07-05[MERGE] Forward-port saas-3 up to 4fa30f5Olivier Dony
2014-07-04[MERGE] Forward-port of 7.0 up to 64ac1b0Olivier Dony
2014-07-04[FIX] document: replace raw SQL constraint with bad parameter passing with ↵Olivier Dony
builtin check_recursion This instance was not actually exploitable for SQL injection as it is not callable directly via RPC and guarded by other queries when indirectly called. Still plain awful.
2014-06-25[REM] Unnecessary `size` parameters on char fieldsJaydeep Barot
2014-04-09[IMP] document, edi, procurement: use method Registry.cursor() (formerly ↵Raphael Collet
get_cursor) bzr revid: rco@openerp.com-20140409095659-sxcgsdbsxvfrzwg4
2014-04-09[IMP] document, edi, procurement: use new method Registry.get_cursor()Raphael Collet
bzr revid: rco@openerp.com-20140409070922-2lbc6b2llk46n8rg
2013-12-16[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9698, revision-id: ↵Olivier Dony
odo@openerp.com-20131216142049-xh9gxy5cir3p2i09 bzr revid: dle@openerp.com-20131216111534-0w0jdod25ff3iapc bzr revid: odo@openerp.com-20131216142246-unt6qqb23uq53we1
2013-12-16[FIX] document: duplicate directory detection should work even when a record ↵Xavier ALT
rule prevent user from seeing duplicates bzr revid: xal@openerp.com-20131216123954-px10qz9g3qxng6c6
2013-11-30[MERGE] forward port of branch 7.0 up to revid 9668 ↵Christophe Simonis
launchpad_translations_on_behalf_of_openerp-20131130053134-6u83vcd1133xs8yf bzr revid: chs@openerp.com-20131130130014-hi5h5a00kjx0dbvp
2013-11-28[MERGE] [FIX] document: check method fails if it is called with an id ↵Martin Trigaux
instead of a list of ids. Courtesy of Carlos Vásquez (CLEARCORP) bzr revid: mat@openerp.com-20131128114958-cbwsvntblmjf55cy
2013-09-13[FIX] document: check method fails if it is called with an id instead of a ↵Carlos Vásquez
list of ids lp bug: https://launchpad.net/bugs/1225107 fixed bzr revid: carlos.vasquez@clearcorp.co.cr-20130913173912-h4oec41fwh9pg69f
2013-08-01[MERGE] Forward-port of 7.0 bugfixes up to rev. 9337 ↵Denis Ledoux
(dle@openerp.com-20130731153129-8hmqrgsg3e9d533f) bzr revid: mat@openerp.com-20130726073123-6buqe3rg321gj5rw bzr revid: odo@openerp.com-20130730110536-a74ea14pwb2y03ay bzr revid: dle@openerp.com-20130801123703-frjhpeqwocsjo7ge
2013-07-22[FIX] better checkMartin Trigaux
bzr revid: mat@openerp.com-20130722132715-r67xneyv85lbsung
2013-07-22[FIX] same without record rules, python sideMartin Trigaux
bzr revid: mat@openerp.com-20130722115106-b1uldamgbpisf84g
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-27[REF] document: removed openerp.pooler imports.Vo Minh Thu
bzr revid: vmt@openerp.com-20130327140149-8dirpf7383hdm1rn
2013-02-01[REF] service: some code was touching the internal of netsvc.Service so it ↵Vo Minh Thu
has to be updated. bzr revid: vmt@openerp.com-20130201112309-bjhu7jems82uk6bg
2012-12-24[FIX]Index content now works when adding attachementdle@openerp.com
bzr revid: dle@openerp.com-20121224140002-myl9eyp5e0st0kne
2012-12-19[FIX]Update request missing one argumentdle@openerp.com
bzr revid: dle@openerp.com-20121219170005-swdzzhvm2nifye5f
2012-12-18[FIX]remove dctx, from merge ↵dle@openerp.com
https://code.launchpad.net/~numerigraphe/openobject-addons/trunk-document-dctx-noprefix/+merge/92431 bzr revid: dle@openerp.com-20121218165839-mwgb8jl5tgcn9eam
2012-12-18[FIX]_logger instead of self._logger, fix report namedle@openerp.com
bzr revid: dle@openerp.com-20121218163724-08wry3f8tdwz8g23
2012-12-18[MERGE] trunkAntony Lesuisse
bzr revid: al@openerp.com-20121218140311-1rw9bqc1nwztfobb
2012-12-17document fix filtering when parents are nulltAntony Lesuisse
bzr revid: al@openerp.com-20121217030913-x50nlq5qf7kuffe3
2012-12-17cleanup testsAntony Lesuisse
bzr revid: al@openerp.com-20121217015651-qdw4iugzh9ghwv19
2012-12-17document partial refactoring and cleanupsAntony Lesuisse
bzr revid: al@openerp.com-20121217011958-70esu8d6q54fu0zd
2012-12-16remove more cruftAntony Lesuisse
bzr revid: al@openerp.com-20121216204737-4mfsbp0v6s0g799j
2012-12-06[IMP] use the openerp namespace.Vo Minh Thu
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-10-11[MERGE] trunkFabien Pinckaers
bzr revid: fp@tinyerp.com-20121011142308-vdynmuonffi31yug
2012-10-10[MERGE] documentsFabien Pinckaers
bzr revid: fp@openerp.com-20121010202148-hsisroe6a2tra2um
2012-10-10[IMP] document namesFabien Pinckaers
bzr revid: fp@openerp.com-20121010201823-rgv2zv73urxz3ysh
2012-10-10[FIX] mail: context default value errorChristophe Matthieu
bzr revid: chm@openerp.com-20121010101532-v2vx6h01x4zeq0ac
2012-10-09[IMP] mail, document: don't check duplication of file for attachment mailChristophe Matthieu
bzr revid: chm@openerp.com-20121009080858-gnpf1893m12jd3mp
2012-10-03[IMP] document: add on_change on fname so it will update the download link ↵Purnendu Singh (OpenERP)
with the name of attached document bzr revid: psi@tinyerp.com-20121003094242-5wu6pki5cx442jte
2012-10-02[MERGE] trunkAntonin Bourguignon
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw