Commit Graph
819 Commits
Author SHA1 Message Date
Olivier Dony 7964fd96f8 [MERGE] tools.translate, test_reports, res_config: several bugfixes (see buglinks)
lp bug: https://launchpad.net/bugs/692845 fixed
lp bug: https://launchpad.net/bugs/692598 fixed
lp bug: https://launchpad.net/bugs/692746 fixed

bzr revid: odo@openerp.com-20101221170809-zqusunjw2em9xz9y
2010-12-21 18:08:09 +01:00
Olivier Dony 12ba501178 [FIX] convert: module install should fail when CSV import fails
lp bug: https://launchpad.net/bugs/672669 fixed

bzr revid: odo@openerp.com-20101221164548-za2o4239tk0xnrww
2010-12-21 17:45:48 +01:00
P. Christeas 1970c59234 translate: fix usage of TinyPoFile.warn() [Bug 692845]
as reported by Phong Nguyen, thanks.

bzr revid: p_christ@hol.gr-20101221144646-74a9qy43nbiepbxu
2010-12-21 16:46:46 +02:00
P. Christeas 15893e879d test_reports: fix creating objects with o2m/m2m fields.
bzr revid: p_christ@hol.gr-20101221144605-2a9wkz8d25h172uf
2010-12-21 16:46:05 +02:00
P. Christeas bc9611bd40 translate: fix skipping one translation per .po file in a .tgz
Thanks TFR for asking me to translate the *single* term that had been
missing due that bug!
The .po file loop skips the first line of the supplied rows, but the
calling was not consistent to always provide the redudant header row.

bzr revid: p_christ@hol.gr-20101221144354-chc9oz6r3to75pu1
2010-12-21 16:43:54 +02:00
Olivier Dony e5ecadeda7 [FIX] tools.translate: remove useless duplicate line
bzr revid: odo@openerp.com-20101221143718-ml2xg42yypn6b8fm
2010-12-21 15:37:18 +01:00
Vo Minh Thu (OpenERP) 35b9fd82ff [FIX] re-commit previous merge broken by bzr-rebase:
translate,orm: simplify loading of field value translations and avoid ignoring them when string has changed (many issues with menus not loaded yet)

bzr revid: odo@openerp.com-20101221105843-myzlkd74tci3puer
2010-12-21 11:58:43 +01:00
P. Christeas 8adeacd146 [MERGE] test_reports: helper function for testing wizard-based reports
bzr revid: odo@openerp.com-20101220174051-nf2m3edwo06rh4oc
2010-12-20 18:40:51 +01:00
Jay (OpenERP) 0170649b71 [FIX] convert: correct default value for <act_window>'s domain attribute
lp bug: https://launchpad.net/bugs/691438 fixed

bzr revid: odo@openerp.com-20101220172656-i8cgliwnt7g1dyh6
2010-12-20 18:26:56 +01:00
Olivier Dony dc4d460d16 [MERGE] translate,orm: simplify loading of field value translations and avoid ignoring them when string has changed (many issues with menus not loaded yet)
bzr revid: odo@openerp.com-20101220171813-882waudb2grz81jo
2010-12-20 18:18:13 +01:00
OpenERP edcbf91f03 [FIX] orm, translate: unconditionally set the translation from .pot to db, lookup a translation by name, type, and lang only (no more source string)
lp bug: https://launchpad.net/bugs/682092 fixed

bzr revid: openerp@vmt-hp4520s-20101220151523-vy4xzvahz80tara7
2010-12-20 16:15:23 +01:00
olt@tinyerp.com 4236d93ba5 [FIX] tools.convert: logger.log: first argument needs to be an integer, not a string
bzr revid: olt@tinyerp.com-20101220150747-4ull8wjwf7ichu9l
2010-12-20 16:07:47 +01:00
P. Christeas 656cb5753b test_reports: aesthetic improvements for the test_report_action
bzr revid: p_christ@hol.gr-20101219200627-7pju2glqrs53631u
2010-12-19 22:06:27 +02:00
P. Christeas 480a3441f3 test_reports: rename res_model, res_ids to active_model, active_ids
Requested by Odo, for consistency

bzr revid: p_christ@hol.gr-20101219200620-0mldt3s19xg6j5w5
2010-12-19 22:06:20 +02:00
P. Christeas 5918f08733 test_reports: first draft of a full action/wizard/report tester
Use with a yaml test like:
-
   I will test the action reports
-
  !python {model: res.partner}: |
    from tools import test_reports
    reload(test_reports) # ;)
    test_reports.try_report_action(cr, uid, 'action_account_balance_menu', our_module='account')

bzr revid: p_christ@hol.gr-20101219200608-ffl2k3qiexjxvp48
2010-12-19 22:06:08 +02:00
OpenERP ff55f829ce [FIX] translate: correctly set the translation for menus indirectly named by their action and not visible in the simplified view.
bzr revid: openerp@vmt-hp4520s-20101217123822-0g5h04fz92fxfn42
2010-12-17 13:38:22 +01:00
Olivier Dony 6c1ec1803a [FIX] safe_eval: support for allowing auto-loading of python submodules, such as _strptime
bzr revid: odo@openerp.com-20101216183839-7mor9xfzbor2s9r7
2010-12-16 19:38:39 +01:00
Olivier Dony 97ea0b97a3 [IMP] translate: _( ) should always use ir.translation OSV, no fallback to direct DB access needed
bzr revid: odo@openerp.com-20101215132128-1pxzjrde0bpu5smg
2010-12-15 14:21:28 +01:00
Olivier Dony 650490d61d [IMP] ir.translation,tools.translate._(): cleanup and speedup if translations via _()
- Removed expensive inspect.stack() (courtesy of xrg)
- Improved heuristics for detection of context/lang and cursor
- Switch to using ir.translation when possible instead of direct DB hit to benefit from cache
- Cleanup

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

bzr revid: odo@openerp.com-20101215114019-psrsu998inw6cksu
2010-12-15 12:40:19 +01:00
nel@tinyerp.com 10c0a345e8 [FIX] translation in xpath
bzr revid: nel@tinyerp.com-20101214122911-qxw0vozlqmnzt89q
2010-12-14 13:29:11 +01:00
Olivier Dony 7c7586686d [IMP] tools.misc: enabled Hebrew (he_IL) language
bzr revid: odo@openerp.com-20101209091904-ytigf6ja7j65yx63
2010-12-09 10:19:04 +01:00
Nicolas Vanhoren 2c3cee033d [MERGE] refactor maintenance.contract into publisher_warranty.contract + add system logs scheduler
bzr revid: odo@openerp.com-20101208170350-p8tek7dk7wdtnzvb
2010-12-08 18:03:50 +01:00
nvi-openerp 38569b7754 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20101206091222-miwtrvjkfh8hy8ec
bzr revid: nicolas.vanhoren@openerp.com-20101206174010-f819dzx7vyw2jntk
bzr revid: nicolas.vanhoren@openerp.com-20101207132443-z0wabhbh0ruzwoo2
bzr revid: nicolas.vanhoren@openerp.com-20101208105249-qfjalxkboqpi9xr0
2010-12-08 11:52:49 +01:00
Olivier Dony 592d666e51 [FIX] tools.misc: correct argument to subprocess.Popen (via xrg, analysis/patch courtesy of Michael Telahun Makonnen)
lp bug: https://launchpad.net/bugs/685115 fixed
lp bug: https://launchpad.net/bugs/684661 fixed

bzr revid: odo@openerp.com-20101207170551-o19ab06g1h2x3ygz
2010-12-07 18:05:51 +01:00
Olivier Dony c744e55ffc [ADD] base: support alphabet-specific languages as in Rosetta + enabled Serbian@Latin
bzr revid: odo@openerp.com-20101203160907-59ytzsl8ah2ebtxa
2010-12-03 17:09:07 +01:00
Olivier Dony 3774ad65d7 [FIX] base,yaml: fixed !assert with "count" attribute in yaml tests + enabled more tests in base
bzr revid: odo@openerp.com-20101203142035-3h1min1htys5lhop
2010-12-03 15:20:35 +01:00
Olivier Dony f1cfc436a7 [MERGE+FIX] fixes for translations,sequence,copy,error messages - some patches courtesy of Margarita Manterola and Don Kirkby
lp bug: https://launchpad.net/bugs/672130 fixed
lp bug: https://launchpad.net/bugs/663775 fixed
lp bug: https://launchpad.net/bugs/673194 fixed
lp bug: https://launchpad.net/bugs/663977 fixed

bzr revid: odo@openerp.com-20101130110940-0tf6ra0uwhiptieb
2010-11-30 12:09:40 +01:00
Olivier Dony f87b2bb7e4 [MERGE] font loading issues fixed + performance improvements at module install/load
bzr revid: odo@openerp.com-20101127032014-fxrjaakuo3t4wvw4
2010-11-27 04:20:14 +01:00
Olivier Dony ec9d236589 [IMP] ir_model,ir_module,tools: tweaks for improving module install/loading time
bzr revid: odo@openerp.com-20101127030450-m44krmwbnpd57omf
2010-11-27 04:04:50 +01:00
Olivier Dony 4bc20ff99f [FIX] convert,rng: <act_window> should support unambiguous view_id attribute
+ cleanup of useless id_get param

bzr revid: odo@openerp.com-20101127030304-mvrb92rmgb0wblvc
2010-11-27 04:03:04 +01:00
P. Christeas 07bb2de912 [MERGE] report: TTF fonts loading fixes ; convert: use newer ir.model.data API
bzr revid: odo@openerp.com-20101126163449-51q4rb96w4glzfz8
2010-11-26 17:34:49 +01:00
nvi-openerp edf4981ded [merge]
bzr revid: nicolas.vanhoren@openerp.com-20101126134609-vyspfsb42t36s2wq
2010-11-26 14:46:09 +01:00
P. Christeas ca6fada256 convert.py: use the get_object_reference() API for ir.model.data
Note that the "return False" would have never worked, since the _get_id()
would have raised an exception for missing records.

bzr revid: p_christ@hol.gr-20101126103344-ugr20dnti4gezdoe
2010-11-26 12:33:44 +02:00
olt@tinyerp.com cf152730b8 [FIX] po file parser: database creation crashes if res_id is an empty string
bzr revid: olt@tinyerp.com-20101126082048-ndc55bsf4vo3cu2c
2010-11-26 09:20:48 +01:00
Olivier Dony 2a99340541 [IMP] tools.translate: more lenient with malformed PO entries
bzr revid: odo@openerp.com-20101125172236-son3382958xbds8y
2010-11-25 18:22:36 +01:00
Olivier Dony 727b9d7e55 [IMP] tools.translate: use consistent logging API
bzr revid: odo@openerp.com-20101125172144-3z0rs97u50q142vx
2010-11-25 18:21:44 +01:00
P. Christeas, O. Dony 6a69f37cf0 [MERGE] many improvements regarding translations, logging, reports, http, speed
bzr revid: odo@openerp.com-20101125142219-8bkqfboyuslzpvyo
2010-11-25 15:22:19 +01:00
gpa 9de5e301e1 Improvement for the transformation of the icon file paths inside
bzr revid: gpa@tinyerp.com-20101125052729-bajcewtj468rhcjx
2010-11-25 10:57:29 +05:30
Olivier Dony 0fa9b15868 [IMP] yaml_import: improved resolution of XML IDs
bzr revid: odo@openerp.com-20101124173222-177ra54gh0t5z0uy
2010-11-24 18:32:22 +01:00
gpa 1a6ab82f7b Improvement for the web client dash board
bzr revid: gpa@tinyerp.com-20101124104936-rk38vyhz7bll6f9r
2010-11-24 16:19:36 +05:30
Margarita Manterola b140c3cacb Confirm message support translation and export
bzr revid: ysa@tinyerp.com-20101124093647-hbh2gzghkf39desi
2010-11-24 15:06:47 +05:30
Yogesh Sakhreliya 8940877f64 revert rev no :-3030
bzr revid: ysa@tinyerp.com-20101124093435-3d7ioctc8raaf1j2
2010-11-24 15:04:35 +05:30
Yogesh Sakhreliya ca3a65d9ad Confirm message support translation and export--author=Margarita Manterola
bzr revid: ysa@tinyerp.com-20101124091207-5gccf6h5h0hgu06i
2010-11-24 14:42:07 +05:30
P. Christeas 597a871470 misc: import warnings, needed for earlier patch
bzr revid: p_christ@hol.gr-20101123180824-sk28lwc298v89rr4
2010-11-23 20:08:24 +02:00
P. Christeas 04c05faf9b yaml-import: fix working with deleted data
At some cases, ir.model.data is left with orphan entries, so ensure that
the message below is used (rather than "bool has no get()" exception).

Conflicts:

	bin/tools/yaml_import.py

bzr revid: p_christ@hol.gr-20101123153936-0cc4t4e2xwat70q1
2010-11-23 17:39:36 +02:00
P. Christeas 186b9190f6 tools.convert, misc: use pythonic logging
Conflicts:

	bin/tools/convert.py
	bin/tools/misc.py

bzr revid: p_christ@hol.gr-20101123153325-wicnjxt98lp03cpf
2010-11-23 17:33:25 +02:00
P. Christeas 4db6f0e5c1 translate: fix default arguments after last patch
bzr revid: p_christ@hol.gr-20101123152740-pn9mbptpdvw0sz98
2010-11-23 17:27:40 +02:00
P. Christeas d4379792fc tools/misc: port the exec_command_pipe() to the subprocess module.
The os.popen2 is deprecated since Python 2.6. It also failed to properly
escape the command line arguments.

Conflicts:

	bin/tools/misc.py

bzr revid: p_christ@hol.gr-20101123152224-d52414w2tscw6bvo
2010-11-23 17:22:24 +02:00
P. Christeas 7ce5179086 translate: don't complain about fuzzy strings.
They are part of the format and ought to be silently discarded.

bzr revid: p_christ@hol.gr-20101123135858-zkp7hjcn4slv3r57
2010-11-23 15:58:58 +02:00
P. Christeas c67f1746f4 translate: port to pythonic logging, filename in a message
It is good to know which .po file we are currently loading.
Warning: some messages moved from the 'db' logger to the 'i18n' one.

bzr revid: p_christ@hol.gr-20101123135835-k6d6r7sgif5zhb75
2010-11-23 15:58:35 +02:00