Commit Graph
4788 Commits
Author SHA1 Message Date
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
Xavier Morel f3722bbfe4 [IMP] base: make ir_values.get._result_get more readable and slightly faster.
On a test set of ~20 fields, using a precomputed set instead of a spot-computed tuple for 'in' testing yields ~30% speed improvement, and replacing the manual removal of elements by a listcomp filtering yields ~30% more.
      
Tests were also performed using sets and set.difference, while it yields better performances than manual element removal it is still worse than listcomp, especially when taking in account the re-serialization to a list

bzr revid: xmo@openerp.com-20101109130847-p1xfmk3zhhivebj1
2010-11-09 14:08:47 +01:00
Xavier Morel b89aef19f1 [IMP] base: tentative code simplifications (removal of redundant calls) in ir_values.get
bzr revid: xmo@openerp.com-20101109130834-2rdsy3u7hm8kzj5n
2010-11-09 14:08:34 +01:00
Xavier Morel 7bc1a8c130 [IMP] make type tests more readable in ir_values.get
bzr revid: xmo@openerp.com-20101109115741-15iyg5tpblgmb2yy
2010-11-09 12:57:41 +01:00
Xavier Morel 5472c050af [FIX] base: don't return search_view and search_view_id from ir_values.get
bzr revid: xmo@openerp.com-20101109115254-svfwdr3kfb7as7a6
2010-11-09 12:52:54 +01:00
Olivier Dony fc065933c7 [IMP] tools.misc: typo in tools.ustr error message
bzr revid: odo@openerp.com-20101109110436-aftj49f65zac5qwe
2010-11-09 12:04:36 +01:00
Olivier Dony f886f8f43b [FIX] reports/rml2pdf: improved previous fix of unicode/str conversion
bzr revid: odo@openerp.com-20101109105329-zjtz7lcdg6h0trxw
2010-11-09 11:53:29 +01:00
Launchpad Translations on behalf of openerp 296591c119 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101109044748-jx0843m3k1eh2ha2
bzr revid: launchpad_translations_on_behalf_of_openerp-20101109044959-yggrezmg7uh721d9
2010-11-09 04:49:59 +00:00
Olivier Dony 14b584718d [FIX] reports/rml2pdf: somewhat more consistent handling of unicode/str conversion + cleanup
lp bug: https://launchpad.net/bugs/537449 fixed
lp bug: https://launchpad.net/bugs/662598 fixed

bzr revid: odo@openerp.com-20101108185328-9bbb22v0yisdp8h1
2010-11-08 19:53:28 +01:00
Olivier Dony e552766352 [IMP] orm: spelling: default language is en_US, so we should us International/US forms
lp bug: https://launchpad.net/bugs/546138 fixed

bzr revid: odo@openerp.com-20101108143014-p3xlsiz3kb79ckdt
2010-11-08 15:30:14 +01:00
Xavier Morel 31346d6259 [FIX] documentation of _set_previous_todo: doesn't inherently throw anything anymore
bzr revid: xmo@openerp.com-20101108110159-ptfhu5krjs4y0ald
2010-11-08 12:01:59 +01:00
Xavier Morel bf35164a65 [REM] pre-check that we're not setting ir_actions_todo.state to nothing: it's a selection field, so the write call can check that itself
bzr revid: xmo@openerp.com-20101108104718-md2wdklz5rc92ef5
2010-11-08 11:47:18 +01:00
Xavier Morel 89af2f0c8e [FIX] Do not raise an error if the next todo isn't found to set the previous todo's status
The previous line hardly makes any sense, so clarification: finding the 'next' todo is based on todo states, so until we've set the state of the todo item we've just executed (aka the previous todo) it remains the 'next' todo as well.

So in order to set the previous todo's state, we look for the next todo (which it still is) and set its state, actually marking it as the 'previous' todo

bzr revid: xmo@openerp.com-20101108104412-bd7bf3k7c5p5jkpl
2010-11-08 11:44:12 +01:00