Commit Graph

4800 Commits

Author SHA1 Message Date
P. Christeas 962a4cce70 orm: revert e940ece64169da4f, read(<bad-id>) must return empty list!
bzr revid: p_christ@hol.gr-20101123135728-rqoec2b92roln4up
2010-11-23 15:57:28 +02:00
P. Christeas 6e13dcb8a2 orm: Return numeric uid at perm_read() when no access to res.user
If a res.user belongs to a company_id that the current user has no access
to, perm_read() wouldn't be able to return results (but exception). Now,
just skip the uid->login resolution and return the numeric value instead.

bzr revid: p_christ@hol.gr-20101123135654-bslxfv93p10216d3
2010-11-23 15:56:54 +02:00
P. Christeas ddb331f944 res_users: When deleting a group with users, have a more detailed exc.
bzr revid: p_christ@hol.gr-20101123135506-qr5aumaw8bwoedfd
2010-11-23 15:55:06 +02:00
P. Christeas 1aa8aad95e ir_actions: Cleanup code, use pythonic logging.
Conflicts:

	bin/addons/base/ir/ir_actions.py

bzr revid: p_christ@hol.gr-20101123135224-190hp303ipjncml8
2010-11-23 15:52:24 +02:00
P. Christeas f4c0dfd0f5 addons/base: bump the module version
bzr revid: p_christ@hol.gr-20101123135003-krickjbds9qnbnhq
2010-11-23 15:50:03 +02:00
P. Christeas 063ac95428 base.module.upgrade: have default context arg.
bzr revid: p_christ@hol.gr-20101123135001-gosz6v48duf3t467
2010-11-23 15:50:01 +02:00
P. Christeas 091a3eba2b websrv_lib: fix do_OPTIONS for m$ webdav
Since we have moved all code into the websrv_lib, we must also support
this non-standard extension in our do_OPTIONS(). It has been noted that
some Win XP machines wouldn't connect to our WebDAV unless we set that
header.

bzr revid: p_christ@hol.gr-20101123134932-65wmh8bntuwt4jvc
2010-11-23 15:49:32 +02:00
P. Christeas ac2c09908a OSV: a lint check fix
bzr revid: p_christ@hol.gr-20101118184840-08li9h2ebfzdtxpy
2010-11-18 20:48:40 +02:00
P. Christeas 41c9098ca9 OSV: Fix callable _sql_constraint messages
This fixes the support for callable sql_constraint messages, which have
always been wrong. It respects the (cr, uid, ids, context) arguments and
will fallback to Postgres's error if it cannot call.

Note that sql constraints are not properly explained when base_module_record
or audittrail are installed.

bzr revid: p_christ@hol.gr-20101118184643-8tnmj83b09kuvf1j
2010-11-18 20:46:43 +02:00
P. Christeas d0dee32019 osv: Improve the translation logic for the osv.check wrapper
Done after bug [655783], the osv layer is too early to call the _().
Also, we cannot trust the cursor to perform a further SQL query on
it, since it carries the IntegrityError.

bzr revid: p_christ@hol.gr-20101118184638-2yrfpvx9har48h1g
2010-11-18 20:46:38 +02:00
P. Christeas c8f52b8c98 ORM, ir_*: convert standard constraint messages to callables
Also, fix way that callable constraints are passed with the context so
that they can have translatable strings inside (but not on the results
of the callable).

Conflicts:

	bin/addons/base/ir/ir_model.py
	bin/addons/base/module/module.py
	bin/tools/translate.py

bzr revid: p_christ@hol.gr-20101118164721-19rgx43d3p96b2lf
2010-11-18 18:47:21 +02:00
P. Christeas 1f380f0504 web-services: new "get_sqlcount" call
Useful for automated statistics, returns the global SQL counter of queries.
It does not affect any counters, and will print a warning if debug_sql
is not enabled (counter would be zero, then).

bzr revid: p_christ@hol.gr-20101117115232-olq747j4vmauqgy8
2010-11-17 13:52:32 +02:00
P. Christeas 406e8aaba6 ORM: do import warnings, needed for _check_recursion() earlier patch
bzr revid: p_christ@hol.gr-20101116163536-jmfxkzagrq5fcrx8
2010-11-16 18:35:36 +02:00
P. Christeas 89c40dec2f translate: fix scanning the ir.models for translations
The loop would only consider models that have >0 records registered in
    ir.model.data.

This is merge of commits 3988ebf4dc130, 070e7d6ac717de and adapt to trunk.

bzr revid: p_christ@hol.gr-20101116163510-yemzlcy0f0yk893l
2010-11-16 18:35:10 +02:00
P. Christeas cfdd34d511 web_services: implement os timestamp query.
The os user and sys elapsed times are very useful for performance metrics,
they can tell us how much did the openerp server try for some operation.

Conflicts:

	bin/service/web_services.py

bzr revid: p_christ@hol.gr-20101116162025-go5lx4qs658pt7t5
2010-11-16 18:20:25 +02:00
P. Christeas 3e32b34060 base_data: fix English typo
bzr revid: p_christ@hol.gr-20101116150753-k60y3sfqn40goppr
2010-11-16 17:07:53 +02:00
P. Christeas e34769a59d module wizards: improve over trivial rpc errors
bzr revid: p_christ@hol.gr-20101116150607-qh03n3w225j6xh8v
2010-11-16 17:06:07 +02:00
P. Christeas 8ce5d2bc20 tools/misc: prevent icon names from being translated
They are identifier strings, not human-readable.

bzr revid: p_christ@hol.gr-20101116150537-s7tyw7d6y0r1dl6c
2010-11-16 17:05:37 +02:00
P. Christeas 08ef1a95f1 ORM: deprecate check_recursion() in favour of _check_recursion()
bzr revid: p_christ@hol.gr-20101116150435-jfmjah8ookf11x3y
2010-11-16 17:04:35 +02:00
P. Christeas 4187facd9f ORM: Better message when copying non-existing records
by: jvo@openerp.com

In both cases, we end up with an exception. But it is better to know
which model+id has failed.

bzr revid: p_christ@hol.gr-20101116150047-xtyz8nrt6465ug2k
2010-11-16 17:00:47 +02:00
P. Christeas 63d562de39 ORM: fix bug at orm.copy_data(), would reset context[lang]
Thanks to Dr. Gassauer that made me revise this code.

bzr revid: p_christ@hol.gr-20101116150025-ssyiix1c72t04fbk
2010-11-16 17:00:25 +02:00
P. Christeas 329bfb0d18 tools: Initial version of test_reports utility
With this utility module, YAML tests (or others) can quickly check a (pdf)
report.

bzr revid: p_christ@hol.gr-20101116145925-z4lshbefogbwz7r9
2010-11-16 16:59:25 +02:00
sma (Tiny) e96e07e244 Added _description attribute for model Res.groups.
lp bug: https://launchpad.net/bugs/672552 fixed

bzr revid: sma@tinyerp.com-20101116125338-ryuhc33tg1lg1iuj
2010-11-16 18:23:38 +05:30
Olivier Dony 0c489cf1fa [ADD] test: added smoke test for tools.translate.quote and unquote
bzr revid: odo@openerp.com-20101116124328-1ez3w3jxvf5v3ilt
2010-11-16 13:43:28 +01:00
Olivier Dony 6a3324a7a0 [IMP] tools.translate: various improvements to tranlations export/import, courtesy of P. Christeas:
- better support for multiline labels
- better support for multiple addons paths

bzr revid: odo@openerp.com-20101116123844-mo9mljrzduzs90gg
2010-11-16 13:38:44 +01:00
Anup (OpenERP) 602815a5ad [FIX](Maintenance) Exportation fixed for o2m and m2m
bzr revid: ach@tinyerp.com-20101116092650-cdzcqn5tc7hq5l3m
2010-11-16 14:56:50 +05:30
Launchpad Translations on behalf of openerp 9ce4c19ddb Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101113045543-gq76fkq68gr8ztn4
bzr revid: launchpad_translations_on_behalf_of_openerp-20101114050617-nexh3bn94sursrgz
bzr revid: launchpad_translations_on_behalf_of_openerp-20101115050022-k7zlh9jzqc8beyz4
bzr revid: launchpad_translations_on_behalf_of_openerp-20101116050554-aaipk5pslwtpiv7i
bzr revid: launchpad_translations_on_behalf_of_openerp-20101116050822-70xxlgdqeenfg117
2010-11-16 05:08:22 +00:00
Numerigraphe - Lionel Sausin 8b3bd3ccee [FIX] typo in field name
bzr revid: ls@numerigraphe.fr-20101112142119-e9gqnld7m5dd62kh
2010-11-12 15:21:19 +01:00
Numerigraphe - Lionel Sausin 182cf2b196 [MERGE] sync with the trunk
bzr revid: ls@numerigraphe.fr-20101112141041-19kpvr7pzxqankqo
2010-11-12 15:10:41 +01:00
Numerigraphe - Lionel Sausin e013734045 [REF] stricter checking of defauts in fields & orm __init__
bzr revid: ls@numerigraphe.fr-20101112134214-h27a1ewxr9c4g3id
2010-11-12 14:42:14 +01:00
Vir (Open ERP) cc0d270bab [ADD] Tooltip added for menus
bzr revid: vir@tinyerp.com-20101112110842-ullxl4irgdcv0xvg
2010-11-12 16:38:42 +05:30
Xavier Morel 7b05292497 [IMP] simplify summing operation (sum builtin was added in 2.3)
bzr revid: xmo@openerp.com-20101112104114-mdooszav0ox220nb
2010-11-12 11:41:14 +01:00
Numerigraphe - Lionel Sausin 1fff5e28f1 [FIX] incorrect spellings (childs -> children)
bzr revid: xmo@openerp.com-20101112103952-qabm06zgu6s5qrnn
2010-11-12 11:39:52 +01:00
Vir (Open ERP) 0a25c19e16 [ADD] Tooltip added for menus
bzr revid: vir@tinyerp.com-20101112064418-5s3k5okwpzvytuya
2010-11-12 12:14:18 +05:30
Launchpad Translations on behalf of openerp 3a21029c7d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101111044315-32hwb9j0fe7o7e63
bzr revid: launchpad_translations_on_behalf_of_openerp-20101112044535-520f3lz5yj0rnd9x
2010-11-12 04:45:35 +00:00
Olivier Dony 6ed2843443 [FIX] base_data: changed United Kingdom Country Code from invalid "uk" to iso3166 "gb"
(Kept "uk" XML ID for backwards compatibility)

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

bzr revid: odo@openerp.com-20101111014039-t7b9qpc4hxx54nyz
2010-11-11 02:40:39 +01:00
Olivier Dony 1793660576 [FIX] safe_eval: added support for new JUMP OPCODES from Python 2.7
lp bug: https://launchpad.net/bugs/673773 fixed

bzr revid: odo@openerp.com-20101111011243-42aunydhqy0avvwp
2010-11-11 02:12:43 +01:00
Olivier Dony 25f8322725 [FIX] tools.pdf_utils: fixed typo in previous commit
bzr revid: odo@openerp.com-20101110200438-s3p0167w1cwsb896
2010-11-10 21:04:38 +01:00
Nicolas Vanhoren bdef22db72 [MERGE] minor improvements after integrating community localizations
bzr revid: odo@openerp.com-20101110180414-zroqvtuxps56a7q7
2010-11-10 19:04:14 +01:00
Christophe Simonis f331f33049 [IMP] base: add cron job to autovacuum osv_memory objects
bzr revid: chs@openerp.com-20101110150448-chvand3pl617r2rr
2010-11-10 16:04:48 +01:00
nch@tinyerp.com d113f6e684 [REVERT]:commit 2996 to opt fro a better solution
bzr revid: nch@tinyerp.com-20101110124654-tdko46c0d4g0uoma
2010-11-10 18:16:54 +05:30
Rga 7819a48a22 [FIX]:Installing a module when completed,it should reload the current menu tab
lp bug: https://launchpad.net/bugs/534521 fixed

bzr revid: nch@tinyerp.com-20101110093340-s0itn4yoal02dvfc
2010-11-10 15:03:40 +05:30
Launchpad Translations on behalf of openerp 94143c9715 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101110050221-quig15hg09hn12wr
bzr revid: launchpad_translations_on_behalf_of_openerp-20101110050350-1ucvpkibprfbqlgr
2010-11-10 05:03:50 +00:00
Ferdinand @ Camptocamp e15d5e4722 [IMP] ir.exports: added missing sql index
lp bug: https://launchpad.net/bugs/665697 fixed

bzr revid: olivier@olivier-donys-macbook-pro.local-20101110003219-l7380et3m3aqa10w
2010-11-10 01:32:19 +01:00
Olivier Dony af817028c6 [FIX] tools.config: do not chmod existing config files
lp bug: https://launchpad.net/bugs/519455 fixed

bzr revid: olivier@olivier-donys-macbook-pro.local-20101109220907-t2phxs26l136bhe7
2010-11-09 23:09:07 +01:00
Christophe Simonis ad4f3dfc0b [IMP] tools.cache now use a LRU to avoid memory overload
bzr revid: chs@openerp.com-20101109165739-1pm8jhckcyzkb2z1
2010-11-09 17:57:39 +01:00
Christophe Simonis fc158668b7 [IMP] pyflakes tools/misc.py
bzr revid: chs@openerp.com-20101109165014-6yw5xvojoe7b0i4t
2010-11-09 17:50:14 +01:00
Xavier Morel bc156c64e4 [IMP] remove redundancy in ir_values.set
bzr revid: xmo@openerp.com-20101109132137-nmkg6uc5sdqovu1o
2010-11-09 14:21:37 +01:00
Xavier Morel 05b8774c61 [IMP] type tests simplifications in ir_values.set
bzr revid: xmo@openerp.com-20101109131734-aby85mwhfhc4501w
2010-11-09 14:17:34 +01:00
Xavier Morel 32ad10bc75 [IMP] avoid returning complete search views from ir_values.get
Also some readability and speed improvements to the method's content

bzr revid: xmo@openerp.com-20101109131506-5k1ohanbo3ocfs5h
2010-11-09 14:15:06 +01:00