Commit Graph

208 Commits

Author SHA1 Message Date
Alexandre Fayolle 65c685ad24 [FIX] context mutations (#10368)
when extending these methods with the new api, the context is a frozendict
so we need to copy before mutating.

this patch was made by searching for key addition to context and calls to the
update() method on the 8.0 addons, and checking if a copy was made before in
the method.
2016-10-12 12:30:42 +02:00
Denis Ledoux 462d212a92 [FIX] document: document directory security
Once the document module installed,
It was mandatory for a user to have the
Knowledge User group in order
to edit/unlink an attachment, even
if this attachment wasn't using
the document directory feature

opw-644712
Fixes #7599
2015-07-14 14:21:08 +02:00
Denis Ledoux cf4d14ce39 [MERGE] forward port of branch saas-3 up to 09b277c 2015-04-27 14:02:52 +02:00
Denis Ledoux d6ae7fb7db [MERGE] forward port of branch 7.0 up to 3e7d3c7 2015-04-27 12:19:43 +02:00
Vincent Vinet 3cc3ab6252 [FIX] document: polynomial time reordering of document ids
Triggered every time on list views as the list view uses a
search_count (filtered but unlimited) to display pagination.

closes #6397
2015-04-21 09:49:47 +02:00
Christophe Simonis d780014248 [MERGE] forward port of branch saas-3 up to ce69064 2015-03-26 18:00:06 +01:00
Christophe Simonis ce690649e9 [MERGE] forward port of branch 7.0 up to 2a0c018 2015-03-26 17:56:05 +01:00
Jérome Maes f89c4cd78d [FIX] document : keep order during the search of ir.attachment
Backport of 16fa24d52258245af4ee9100666bae6ebe664046
2015-03-26 14:48:18 +01:00
Wolfgang Taferner 6b1f475bb5 [FIX] Missing possibility to define a file_type on creation/write of a
document which leads to an error message in case the indexer could not
retrieve the content type automatically.
2015-03-06 10:10:41 +01:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
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-06 17:05:41 +02:00
Olivier Dony 34bfa1b44f [MERGE] Forward-port saas-5 up to d9cda97 2014-07-05 01:45:45 +02:00
Olivier Dony 5ceded9d69 [MERGE] Forward-port saas-3 up to 4fa30f5 2014-07-05 01:04:19 +02:00
Olivier Dony f3880a8a09 [MERGE] Forward-port of 7.0 up to 64ac1b0 2014-07-04 17:07:53 +02:00
Olivier Dony 64ac1b0f46 [FIX] document: replace raw SQL constraint with bad parameter passing with 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-07-04 16:53:26 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Raphael Collet 89f5844b2a [IMP] document, edi, procurement: use method Registry.cursor() (formerly get_cursor)
bzr revid: rco@openerp.com-20140409095659-sxcgsdbsxvfrzwg4
2014-04-09 11:56:59 +02:00
Raphael Collet 0d019b5d90 [IMP] document, edi, procurement: use new method Registry.get_cursor()
bzr revid: rco@openerp.com-20140409070922-2lbc6b2llk46n8rg
2014-04-09 09:09:22 +02:00
Olivier Dony 89a6771f6a [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9698, revision-id: odo@openerp.com-20131216142049-xh9gxy5cir3p2i09
bzr revid: dle@openerp.com-20131216111534-0w0jdod25ff3iapc
bzr revid: odo@openerp.com-20131216142246-unt6qqb23uq53we1
2013-12-16 15:22:46 +01:00
Xavier ALT 6fab66d6f7 [FIX] document: duplicate directory detection should work even when a record rule prevent user from seeing duplicates
bzr revid: xal@openerp.com-20131216123954-px10qz9g3qxng6c6
2013-12-16 13:39:54 +01:00
Christophe Simonis 0ac4a8f696 [MERGE] forward port of branch 7.0 up to revid 9668 launchpad_translations_on_behalf_of_openerp-20131130053134-6u83vcd1133xs8yf
bzr revid: chs@openerp.com-20131130130014-hi5h5a00kjx0dbvp
2013-11-30 14:00:14 +01:00
Martin Trigaux f67135ae52 [MERGE] [FIX] document: check method fails if it is called with an id instead of a list of ids. Courtesy of Carlos Vásquez (CLEARCORP)
bzr revid: mat@openerp.com-20131128114958-cbwsvntblmjf55cy
2013-11-28 12:49:58 +01:00
Carlos Vásquez 63159fee7b [FIX] document: check method fails if it is called with an id instead of a list of ids
lp bug: https://launchpad.net/bugs/1225107 fixed

bzr revid: carlos.vasquez@clearcorp.co.cr-20130913173912-h4oec41fwh9pg69f
2013-09-13 11:39:12 -06:00
Denis Ledoux a99b5786d1 [MERGE] Forward-port of 7.0 bugfixes up to rev. 9337 (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-08-01 14:37:03 +02:00
Martin Trigaux 8ffa0fec98 [FIX] better check
bzr revid: mat@openerp.com-20130722132715-r67xneyv85lbsung
2013-07-22 15:27:15 +02:00
Martin Trigaux 5480f2958e [FIX] same without record rules, python side
bzr revid: mat@openerp.com-20130722115106-b1uldamgbpisf84g
2013-07-22 13:51:06 +02:00
Raphael Collet 96ad608854 [IMP] general: use registry[X] instead registry.get(X) when X is dynamic
bzr revid: rco@openerp.com-20130329143720-80pkd4csemlk1aqz
2013-03-29 15:37:20 +01:00
Vo Minh Thu b0cce721b4 [REF] document: removed openerp.pooler imports.
bzr revid: vmt@openerp.com-20130327140149-8dirpf7383hdm1rn
2013-03-27 15:01:49 +01:00
Vo Minh Thu 69b23c9936 [REF] service: some code was touching the internal of netsvc.Service so it has to be updated.
bzr revid: vmt@openerp.com-20130201112309-bjhu7jems82uk6bg
2013-02-01 12:23:09 +01:00
dle@openerp.com 8f78e5a0a6 [FIX]Index content now works when adding attachement
bzr revid: dle@openerp.com-20121224140002-myl9eyp5e0st0kne
2012-12-24 15:00:02 +01:00
dle@openerp.com 7a627b5810 [FIX]Update request missing one argument
bzr revid: dle@openerp.com-20121219170005-swdzzhvm2nifye5f
2012-12-19 18:00:05 +01:00
dle@openerp.com 6fa12e9458 [FIX]remove dctx, from merge https://code.launchpad.net/~numerigraphe/openobject-addons/trunk-document-dctx-noprefix/+merge/92431
bzr revid: dle@openerp.com-20121218165839-mwgb8jl5tgcn9eam
2012-12-18 17:58:39 +01:00
dle@openerp.com 68097047e7 [FIX]_logger instead of self._logger, fix report name
bzr revid: dle@openerp.com-20121218163724-08wry3f8tdwz8g23
2012-12-18 17:37:24 +01:00
Antony Lesuisse 2a10c7b76b [MERGE] trunk
bzr revid: al@openerp.com-20121218140311-1rw9bqc1nwztfobb
2012-12-18 15:03:11 +01:00
Antony Lesuisse ff7626229a document fix filtering when parents are nullt
bzr revid: al@openerp.com-20121217030913-x50nlq5qf7kuffe3
2012-12-17 04:09:13 +01:00
Antony Lesuisse 45ce223457 cleanup tests
bzr revid: al@openerp.com-20121217015651-qdw4iugzh9ghwv19
2012-12-17 02:56:51 +01:00
Antony Lesuisse 76ce1a2972 document partial refactoring and cleanups
bzr revid: al@openerp.com-20121217011958-70esu8d6q54fu0zd
2012-12-17 02:19:58 +01:00
Antony Lesuisse 893f34555f remove more cruft
bzr revid: al@openerp.com-20121216204737-4mfsbp0v6s0g799j
2012-12-16 21:47:37 +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
Fabien Pinckaers cd014978dc [MERGE] trunk
bzr revid: fp@tinyerp.com-20121011142308-vdynmuonffi31yug
2012-10-11 16:23:08 +02:00
Fabien Pinckaers a435e18d83 [MERGE] documents
bzr revid: fp@openerp.com-20121010202148-hsisroe6a2tra2um
2012-10-10 22:21:48 +02:00
Fabien Pinckaers b2d8a448b4 [IMP] document names
bzr revid: fp@openerp.com-20121010201823-rgv2zv73urxz3ysh
2012-10-10 22:18:23 +02:00
Christophe Matthieu df873d22a8 [FIX] mail: context default value error
bzr revid: chm@openerp.com-20121010101532-v2vx6h01x4zeq0ac
2012-10-10 12:15:32 +02:00
Christophe Matthieu 7a41798d70 [IMP] mail, document: don't check duplication of file for attachment mail
bzr revid: chm@openerp.com-20121009080858-gnpf1893m12jd3mp
2012-10-09 10:08:58 +02:00
Purnendu Singh (OpenERP) 4ef3f9218b [IMP] document: add on_change on fname so it will update the download link with the name of attached document
bzr revid: psi@tinyerp.com-20121003094242-5wu6pki5cx442jte
2012-10-03 15:12:42 +05:30
Antonin Bourguignon 1653332080 [MERGE] trunk
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
2012-10-02 12:29:15 +02:00
Antonin Bourguignon 1fbb4a5c16 [IMP] handling of '(copy)' l10n
bzr revid: abo@openerp.com-20120924162645-z1h4l2mj6c8i6wr3
2012-09-24 18:26:45 +02:00
Antonin Bourguignon a52eeef519 [IMP] rephrase some error and warning messages in document, edi, google_base_account, mrp and mrp_repair
remove exclamation marks at the end of messages
remove unjustified capital letters

bzr revid: abo@openerp.com-20120806170841-cx9vuend1vglmsqk
2012-08-06 19:08:41 +02:00
help 41d1135812 [IMP]improved exception warnings in remaining modules as per suggestion
bzr revid: help-20120731133425-2zlm5sakpowuc6rk
2012-07-31 19:04:25 +05:30
Saurang Suthar(OpenERP) d3f30baa81 [IMP] Improved warning messages for document module
bzr revid: pso@tinyerp.com-20120725103334-rx24b2aojluvxuap
2012-07-25 16:03:34 +05:30
Hardik a710d7b11c [IMP]Document : Warning Messages are changed
bzr revid: hsa@tinyerp.com-20120712101747-h5uhion81908cczy
2012-07-12 15:47:47 +05:30