Commit Graph

5344 Commits

Author SHA1 Message Date
Vo Minh Thu 8f8001d5f0 [IMP] translate: load language xx before xx_XX and overwrite only when a translation is available.
bzr revid: vmt@openerp.com-20101227135800-qwvsk4xwhzrjg6yf
2010-12-27 14:58:00 +01:00
François Degrave 15f577bfeb [IMP] rename internal user -> employee, remove product manager, instead: sale manager, warehouse manager, purchase manager,manufacturing manager have the rights, remove Usability No One, Move low level to Administration -> Customization -> Low level
bzr revid: fde@openerp.com-20101227125911-41521z6ctmmbxrru
2010-12-27 13:59:11 +01:00
François Degrave a580c07159 [IMP] added 'filter' element among the authorized elements in <data> tags
bzr revid: fde@openerp.com-20101227104155-1nq3mpa1spcmgj3a
2010-12-27 11:41:55 +01:00
Launchpad Translations on behalf of openerp 9b0e39da8c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101224045615-4x194c2rh4bukhwi
bzr revid: launchpad_translations_on_behalf_of_openerp-20101225044950-ug9aeny1r6s3x9hi
bzr revid: launchpad_translations_on_behalf_of_openerp-20101226044910-j9e91s0dktvlvo24
bzr revid: launchpad_translations_on_behalf_of_openerp-20101227043834-t90thu9ci1o5e3v8
2010-12-27 04:38:34 +00:00
apa (OpenERP) 54f1eb857b [IMP]:typo
bzr revid: apa@tinyerp.com-20101224051838-buzyrt3v78rq1fe4
2010-12-24 10:48:38 +05:30
apa (OpenERP) d778f3f93b [IMP]:base:for widgets
http://pad.openerp.com/widgets-homepage

bzr revid: apa@tinyerp.com-20101223121953-dtd53kwsv6hqkc1h
2010-12-23 17:49:53 +05:30
P. Christeas cc64d52b33 expression: fix m2o handling of empty lists [Bug 598454]
The domain expressions wouldn't yield the expected results in the
following cases (eg. for res.partner):
  [('company_id', 'in', [])] : should return [], not all partners
  [('company_id.partner_id', 'in', [])] : again, empty set

After some deliberation and discussion, we *change the behavior* for them.

Notes:
  1. This comes after commit 913e95856f80, bug 626806 which solved the
  corresponding cases for m2m, o2m
  2. This commit _will_ have side-effects. The result set for domains now
  is indeed different. But, we believe, now it is the proper one, fixes
  cases of unexpected results that have been reported
  3. It makes the server a bit faster, because empty results are quick to
  compute
  4. The "not in []" operator will NOT return results with NULL values in
  the corresponding field (aka. empty). This may not be the one expected
  by users, but it follows the SQL standard (par. 9.20.3):
    http://www.postgresql.org/docs/9.0/static/functions-subquery.html

bzr revid: p_christ@hol.gr-20101223112938-ore0dmmasekdcyfn
2010-12-23 13:29:38 +02:00
P. Christeas ae6593cfb5 base/test: Tests form many2one fields, empty lists
bzr revid: p_christ@hol.gr-20101223111241-j18dlhemjddvcoh2
2010-12-23 13:12:41 +02:00
apa (OpenERP) 3e1a035f67 [IMP]:base
-remove all personal tweets available  in widget list (odo, stephane, ...), keep only "OpenERP Favorites". 
-the openerp favorites widget should be deletable by default (by a user => in demo data, demo user should be able to remove this widget from his homepage)

bzr revid: apa@tinyerp.com-20101223092639-6495v63r1acp4ewn
2010-12-23 14:56:39 +05:30
Launchpad Translations on behalf of openerp ffc6599f95 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101223050045-9jqin0v5yb60bv3a
2010-12-23 05:00:45 +00:00
Fabien Pinckaers f644f08841 merge
bzr revid: fp@tinyerp.com-20101222184021-7vzgrjcgbnmnnfq5
2010-12-22 19:40:21 +01:00
Fabien Pinckaers fce401d775 fix_import
bzr revid: fp@tinyerp.com-20101222183926-pstib972t969ka5n
2010-12-22 19:39:26 +01:00
Olivier Dony ef47084aa4 [FIX] ir.property: record rules should only allow reading current company properties, not child ones as well
lp bug: https://launchpad.net/bugs/691541 fixed

bzr revid: odo@openerp.com-20101222175258-8aesquwk6v9d4lv4
2010-12-22 18:52:58 +01:00
Olivier Dony 1ba93c18e1 [FIX] convert: avoid treating XML comments as real nodes when loading views
lp bug: https://launchpad.net/bugs/693344 fixed

bzr revid: odo@openerp.com-20101222164515-k60bq20jzngnnghv
2010-12-22 17:45:15 +01:00
Olivier Dony 25d6d96be8 [FIX] res.currency: moved account-related res.currency code to account module
lp bug: https://launchpad.net/bugs/557325 fixed

bzr revid: odo@openerp.com-20101222161045-65kzccw65ya55jm9
2010-12-22 17:10:45 +01:00
François Degrave d08912b15f [IMP] security groups for act_window visibility in res.partner
bzr revid: fde@openerp.com-20101222154236-vpuqk0ou0svugwkg
2010-12-22 16:42:36 +01:00
Fabien Pinckaers e15952531b fix_lp_673696
bzr revid: fp@tinyerp.com-20101221202418-no013141bquj5k6z
2010-12-21 21:24:18 +01:00
Fabien Pinckaers 3df9607a60 fix
bzr revid: fp@tinyerp.com-20101221201517-286g910bux4jas0o
2010-12-21 21:15:17 +01:00
Fabien Pinckaers 7cd08c8bc3 index on res_request
bzr revid: fp@tinyerp.com-20101221200635-9qjowoftlsxcf9lf
2010-12-21 21:06:35 +01:00
Fabien Pinckaers 698584b477 merge
bzr revid: fp@tinyerp.com-20101221193940-k11n92v4sdnr78jf
2010-12-21 20:39:40 +01:00
Fabien Pinckaers 80b21b75d9 [FIX] import / export
bzr revid: fp@tinyerp.com-20101221193847-z9rkx9o4gc0o92dd
2010-12-21 20:38:47 +01:00
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
Olivier Dony 033179095f [IMP] orm: improve error reporting when importing m2m in CSV (courtesy of Martin Collins)
lp bug: https://launchpad.net/bugs/672669 fixed

bzr revid: odo@openerp.com-20101221152340-5mp5c36357amsi8m
2010-12-21 16:23:40 +01:00
Olivier Dony 7cca938586 [FIX] publisher_warranty: avoid trying to safe_eval() an empty string
lp bug: https://launchpad.net/bugs/691892 fixed

bzr revid: odo@openerp.com-20101221151445-th3cfbjw104g6ie9
2010-12-21 16:14:45 +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 08f568ec0f res_config: fix unicode help + msg for already-installed addons [Bug 692598]
As reported by TFR.

bzr revid: p_christ@hol.gr-20101221144456-uy8xz2ovjbbj1qsk
2010-12-21 16:44:56 +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
Olivier Dony 1ba2ff569f [FIX] read_group: better support for empty 'fields' or 'groupby' parameters
lp bug: https://launchpad.net/bugs/692259 fixed

bzr revid: odo@openerp.com-20101221143714-nvvmg2zmbkowbx60
2010-12-21 15:37:14 +01:00
Launchpad Translations on behalf of openerp a67d3a287b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101221132741-3ciykbz935xctho7
2010-12-21 13:27:41 +00: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
Fabien Pinckaers 78a2174db1 merge
bzr revid: fp@tinyerp.com-20101221091005-zctt5bwplj0txipc
2010-12-21 10:10:05 +01:00
Fabien Pinckaers 83d46bac4c [IMP] import / export cleaned
bzr revid: fp@tinyerp.com-20101220231743-9vswez6tg198cyco
2010-12-21 00:17:43 +01:00
Olivier Dony a2055b6d31 [FIX] addons.zip_directory: ZipFile.write() still expects binary strings for filenames in python 2.5
lp bug: https://launchpad.net/bugs/690559 fixed

bzr revid: odo@openerp.com-20101220191724-mvu1rsf3sup19s9m
2010-12-20 20:17:24 +01:00
P. Christeas 75db037508 [MERGE] EAN13 and QR support in RML, simpler indices on workflows, cleanup of ir_ui_menu.py
lp bug: https://launchpad.net/bugs/532559 fixed

bzr revid: odo@openerp.com-20101220175802-z4yh5dlad0oob5hm
2010-12-20 18:58:02 +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
Xavier Morel b56127a689 [IMP] return the module version (installed_version) during web modules queries
bzr revid: xmo@openerp.com-20101220164648-4n78ghbov1rruei5
2010-12-20 17:46:48 +01:00
Olivier Dony 0fedbb3215 [FIX] fields.reference: don't accept half-defined references - second part of fix, in create()
lp bug: https://launchpad.net/bugs/604604 fixed

bzr revid: odo@openerp.com-20101220162501-v0xag7nwdhfij14f
2010-12-20 17:25:01 +01:00
Olivier Dony afed2d47fe [FIX] fields.reference: don't accept half-defined references, and avoid crashing on previous bad ones
lp bug: https://launchpad.net/bugs/604604 fixed

bzr revid: odo@openerp.com-20101220160959-f6x2kik46btf0uol
2010-12-20 17:09:59 +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
niv-openerp 70c57a70a9 [FIX] Fixed problem with pings and openerp.com web server.
bzr revid: nicolas.vanhoren@openerp.com-20101220101958-v8zxw8q1rewzsk5p
2010-12-20 11:19:58 +01:00
Olivier Dony 8bf22a19e5 [MERGE] tools.email_send, base: improved spam wizard and email_send w/ plaintext alternative + minor improvements in base menu/views
lp bug: https://launchpad.net/bugs/668320 fixed
lp bug: https://launchpad.net/bugs/670050 fixed
lp bug: https://launchpad.net/bugs/688402 fixed

bzr revid: odo@openerp.com-20101222123509-dhxbq3wdzj5w2bei
2010-12-22 13:35:09 +01:00
Olivier Dony a9d653ead1 [I18N] base: cleanup export after fixing some remaining translation export issues
bzr revid: odo@openerp.com-20101221194915-w9am2wzjvi9z73zs
2010-12-21 20:49:15 +01:00
Olivier Dony 162e988544 [IMP] orm.search: support multiple _order clauses in destination objects when sorting on m2o fields
lp bug: https://launchpad.net/bugs/692694 fixed

bzr revid: odo@openerp.com-20101221192344-87d7ajnfsn5unm9p
2010-12-21 20:23:44 +01:00
Launchpad Translations on behalf of openerp a453ea1fc8 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101222044541-ith1dgyhz41dn8ey
2010-12-22 04:45:41 +00:00
Tony Gu c5306903ba corrected a typo
bzr revid: tony@wonderland-20101220082615-k92tie6gnxd5v01a
2010-12-20 16:26:15 +08:00
Tony Gu 5cde817a86 [IMP]register custom fonts once only
bzr revid: tony@wonderland-20101220055040-lti41w3qq5xi3dtp
2010-12-20 13:50:40 +08:00
Tony Gu 2e03947c9f [IMP]to allow outside module to set differnt search path in TTFSerachPath* variables
bzr revid: tony@wonderland-20101220054843-uru3i4a9wut02qou
2010-12-20 13:48:43 +08:00
Launchpad Translations on behalf of openerp e81905c7bc Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101218050151-7b2d211zmlho0nz5
bzr revid: launchpad_translations_on_behalf_of_openerp-20101219044527-usqaexey3l5mc7a8
bzr revid: launchpad_translations_on_behalf_of_openerp-20101220044920-a2cwkndd2s79fpc0
2010-12-20 04:49:20 +00:00
P. Christeas aaac6a602f trml2pdf: Support EAN13 and QRcode barcodes, fix unicode warning [Bug 532559]
Since ReportLab supports them, include it in our list, too.
Also, fix the warning that has been appearing in buildbot, about
"code128.py:257: UnicodeWarning ..."
The issue is that string-capable barcodes will only support ASCII chars,
not Unicode. So, cast to str() and let ReportLab's code be happy.

Code was based on patch by: Omar (Pexego), on 22-06-2010

bzr revid: p_christ@hol.gr-20101219201127-mmrsn206a9vldr43
2010-12-19 22:11:27 +02:00
P. Christeas 91a0d108bf workflow.instance: remove excess indices
It is a table with 4 columns, doesn't worth 5 indices! I hope that these
combined indexed plus the wkf_id one will allow Postgres to always come
up with a good plan.

bzr revid: p_christ@hol.gr-20101219200842-4vr72wqal2t8k2xq
2010-12-19 22:08:42 +02:00
P. Christeas 1dbaae147b ir.ui.menu: We don't need a "many2many_unique" class any more
The parent many2many has been improved to avoid duplicate records.

bzr revid: p_christ@hol.gr-20101219200751-0umvepzgtgjhnw78
2010-12-19 22:07:51 +02: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
Olivier Dony 966907eaeb [FIX] fields_view_get: ignore non-element nodes during view inheritance resolution
lp bug: https://launchpad.net/bugs/494969 fixed

bzr revid: odo@openerp.com-20101217150527-4mv740mppqimvsnd
2010-12-17 16:05:27 +01: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
olt@tinyerp.com a536adce04 [FIX] addons/__init__.py: wrong number of arguments for format string
bzr revid: olt@tinyerp.com-20101217110210-sxqhhvj7dh96h58q
2010-12-17 12:02:10 +01:00
Launchpad Translations on behalf of openerp 0c1e226ba0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101217045436-40c3ybxz4w1upvxu
2010-12-17 04:54:36 +00: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 0da4773e14 [IMP] orm.read_group: raise if called with group_by being a non-database-stored field
lp bug: https://launchpad.net/bugs/689070 fixed

bzr revid: odo@openerp.com-20101216183708-o61idware1v6tyk3
2010-12-16 19:37:08 +01:00
Olivier Dony a86a432edf [FIX] res_config: made strings in compatibility install wizard translatable
bzr revid: odo@openerp.com-20101216150430-8tg06fpfubdac4py
2010-12-16 16:04:30 +01:00
Olivier Ligot d82c8e6266 [FIX] call to start method: don't pass [] otherwise it goes in the context argument...
bzr revid: olivier.ligot@groupes.be-20101216131730-rnsq0l0gtqjtiyq3
2010-12-16 14:17:30 +01:00
Olivier Dony d33f6f2903 [FIX] report_sxw: workaround to prevent crash of reports launched from wizards that pass invalid IDs
bzr revid: odo@openerp.com-20101216100749-z06fv08n4u5rhwl0
2010-12-16 11:07:49 +01:00
Launchpad Translations on behalf of openerp 1f377cca79 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101216044244-go321rqvup2m8l4y
bzr revid: launchpad_translations_on_behalf_of_openerp-20101216044841-ewqql1al8ld9es0h
2010-12-16 04:48:41 +00:00
Vo Minh Thu (OpenERP) d98a26fd42 [MERGE] orm: fixed translations for inherited views when the parent view uses a different model
bzr revid: odo@openerp.com-20101215182416-yk4n4krmw2anuyt3
2010-12-15 19:24:16 +01:00
sbh(OpenERP) 4fc6c7f16c [MERGE] rng,res.partner: enable "invisible" attribute for <page> elements + make partner History tab invisible by default (was empty)
bzr revid: odo@openerp.com-20101215155532-8mwx40b61o73xq03
2010-12-15 16:55:32 +01:00
Olivier Dony 842d565db1 [I18N] base: updated POT template after latest translation improvements
bzr revid: odo@openerp.com-20101215154433-v16938z982mlifmz
2010-12-15 16:44:33 +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 96075073d1 [FIX] ir.translation: typo in previous commit, sorry
bzr revid: odo@openerp.com-20101215121143-f1hgn5cp92alzdvx
2010-12-15 13:11:43 +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
OpenERP d3e8448875 [FIX] orm: fixed translations for inherited views when the parent view uses a different model.
This fixes for instance the Next and Skip buttons in the Reconfigure shortcut menu.

bzr revid: openerp@vmt-hp4520s-20101215112537-lrp6tphs9qu4b9dq
2010-12-15 12:25:37 +01:00
Launchpad Translations on behalf of openerp 9b10499abe Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101215043854-s3j1x291m7kl3dig
bzr revid: launchpad_translations_on_behalf_of_openerp-20101215052125-i0y5f9gpuhsjreax
2010-12-15 05:21:25 +00:00
P. Christeas 84a3e9da63 [MERGE] base,res.users: cleanup uid cache when removing/disabling user (test incl.)...
+ fix regression with menu 
+ some minor cleanup

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

bzr revid: odo@openerp.com-20101214193304-928za9xrkmt8yi9b
2010-12-14 20:33:04 +01:00
P. Christeas 56cdbc05a9 web_services: use pg_dump in batch mode.
bzr revid: p_christ@hol.gr-20101214163003-tmdtxaxul5n1wybe
2010-12-14 18:30:03 +02:00
P. Christeas 40cf6eac7a res.users: fix default menu_id, after models got sorted by name.
With the old sorting behavior, id=1 would be the first menu to appear.
But, after sorting, the alphabetically first ("accounting dashboard")
replaced the main menu!

bzr revid: p_christ@hol.gr-20101214162919-o9xflsed4ap6hn2z
2010-12-14 18:29:19 +02:00
P. Christeas 66564a93fc res.users: invalidate cache when a user is modified. [Bug 664379]
Original description, by Xavier ALT:
> The server is using a variable name "_uid_cache" for authentication
> caching, but this variable is never clear when user informations change,
> that means if we disable a user or change it's password their requests
> are still allowed (cached auth check ok).
>
> This affects OpenERP v5 (server/bin/service/security.py) and OpenERP v6
> (server/bin/addons/base/res/res_users.py, class users).
>
> The only workaround is to restart the server.
>

bzr revid: p_christ@hol.gr-20101214162905-716i3ra12xvdtc2l
2010-12-14 18:29:05 +02:00
P. Christeas ef39bbb955 base tests: yaml test for res.users logic
Code inspired from Xavier ALT's example.

bzr revid: p_christ@hol.gr-20101214162856-oskw0ohg8hx9hoc3
2010-12-14 18:28:56 +02:00
P. Christeas 5c6bd686ab reports: fix some default args, import message, empty translations
bzr revid: p_christ@hol.gr-20101214162826-79ppx7qw23ag3qx0
2010-12-14 18:28:26 +02:00
YSA (OpenERP), Olivier Dony (OpenERP) 6a3e52f41f [FIX] orm,base: prevent useless duplication of m2m records via unique constraint + orm check
lp bug: https://launchpad.net/bugs/558658 fixed

bzr revid: odo@openerp.com-20101214132840-q7x2oodu6hez9d91
2010-12-14 14:28:40 +01:00
Olivier Dony b192bf4dd4 [FIX] osv.osv: fixed reference to osv pool, broken by refactoring of osv service
Fixes bug introduced by revision 3102 chs@openerp.com-20101213105104-jpctooc6j7yc8i8i

bzr revid: odo@openerp.com-20101214131812-oiiy1xv8582jh7ya
2010-12-14 14:18:12 +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 56ebc8655a [IMP] res.lang: less misleading documentation on language format
lp bug: https://launchpad.net/bugs/675915 fixed

bzr revid: odo@openerp.com-20101214114027-ynen1r143kv13471
2010-12-14 12:40:27 +01:00
Christophe Simonis b38e97ee4b [NOOP] remove trailing space of bin/addons/base/publisher_warranty/publisher_warranty.py
bzr revid: chs@openerp.com-20101214101747-dx9ntnr9op37on1y
2010-12-14 11:17:47 +01:00
Christophe Simonis 6ac4e8a908 [FIX] base: delete res.widget.user when the linked widget is deleted
bzr revid: chs@openerp.com-20101214100706-diuq8v7dqreo42lz
2010-12-14 11:07:06 +01:00
Launchpad Translations on behalf of openerp 6e05b3cc93 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101214045316-3c6x6lhto9swc1hw
bzr revid: launchpad_translations_on_behalf_of_openerp-20101214053806-8xtqagluqiijot4p
2010-12-14 05:38:06 +00:00
Olivier Dony 7bcccbafe5 [FIX] addons: avoid deleting resources after stand-alone base module update
When updating a database, base module is first loaded on its own, and this may cause useless deletion
of resource, because the aut-cleanup process. This process looks for records that are in the base namespace and
have not been processed, and deletes them because they are presumed removed from the newer version. This does not
properly work now that several modules install records (menus, groups) in the base namespace.
This is fixed by skipping the auto-cleanup process during the stand-alone loading of base, which is fine
because it will be processed properly after the rest of the modules are loaded/updated. 
(No specific LP bug reference, but many translation bugs stem partially from this)

bzr revid: odo@openerp.com-20101213161802-ulsece9bb3q1y1fx
2010-12-13 17:18:02 +01:00
Christophe Simonis 5bb14725d4 [IMP] osv: the object pool is not a service anymore
bzr revid: chs@openerp.com-20101213105104-jpctooc6j7yc8i8i
2010-12-13 11:51:04 +01:00
niv-openerp 4939946b9f [IMP] Improved email and username handling when sending an publisher warranty
issue report.

bzr revid: nicolas.vanhoren@openerp.com-20101213090108-sy7xuwpptskhha3j
2010-12-13 10:01:08 +01:00
niv-openerp d9f34f65d8 [IMP] Added possibility to get email and issue name when a user submit an
exception report.

bzr revid: nicolas.vanhoren@openerp.com-20101210171238-83tqs3ahh8z8h79l
2010-12-10 18:12:38 +01:00
Launchpad Translations on behalf of openerp d6109233e0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101211044617-po5v5cr1ez0gj7pk
bzr revid: launchpad_translations_on_behalf_of_openerp-20101212043911-q9ffkytjwu18d402
2010-12-12 04:39:11 +00:00
Olivier Dony 83115a45af [FIX] orm: preserve elements order when inheriting views, also after a leaf element
lp bug: https://launchpad.net/bugs/686275 fixed

bzr revid: odo@openerp.com-20101211012104-gt1cg3z1ec91mg34
2010-12-11 02:21:04 +01:00
Olivier Dony 4b6f70ec5a [FIX] ir.ui.view: fix search view according to guidelines
lp bug: https://launchpad.net/bugs/687289 fixed

bzr revid: odo@openerp.com-20101211003125-1125npnm8yj6ktx0
2010-12-11 01:31:25 +01:00
Olivier Dony 1d85e7a0f6 [IMP] orm: additional error message about missing index on parent_[left|right] columns during creation
bzr revid: odo@openerp.com-20101211000951-gn5dejp3b7dyz24e
2010-12-11 01:09:51 +01:00
Olivier Dony 536e321ca7 [IMP] orm.search: more quietly ignore invalid m2o order spec + fallback to default _order
bzr revid: odo@openerp.com-20101211000810-h1sirszmh0xp52x4
2010-12-11 01:08:10 +01:00
Olivier Dony aaa3047bed [FIX] res.partner.category: use _parent_store and _parent_order to have correct natural order
lp bug: https://launchpad.net/bugs/665374 fixed

bzr revid: odo@openerp.com-20101211000450-1tfx298cc7aqliih
2010-12-11 01:04:50 +01:00
Olivier Dony 6961047414 [IMP] base: default _order for most internal data models (courtesy of Ferdinand Gassauer) + sorted fields in technical module guide
This should give a more consistent output in most lists involving those objects, as well as in the technical guide report.

lp bug: https://launchpad.net/bugs/655075 fixed
lp bug: https://launchpad.net/bugs/676990 fixed

bzr revid: odo@openerp.com-20101210224258-ljubjit2nl4d28vy
2010-12-10 23:42:58 +01:00
Olivier Dony 4226a3adb2 [FIX] orm: default search view should be more backwards-compatible and lenient
We should consider the select flag from the model as well as the attributes from tree+form view, as in v5.

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

bzr revid: odo@openerp.com-20101210212529-oc5n8n9w8ila9j4u
2010-12-10 22:25:29 +01:00
Olivier Dony 498a04ae2d [FIX] ir.ui.menu: menu items should be filtered only in tree view
The normal list view should display them all, otherwise menus without children are invisible for example
Also ensured that create() clears the menu cache, otherwise adding children to an invisible menu
may not cause it to appear until the server is restarted.

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

bzr revid: odo@openerp.com-20101210161708-txdxidrr3k4c6hk5
2010-12-10 17:17:08 +01:00
YSA (OpenERP) 5b67a3154e [IMP] orm: somewhat better error message when view inheritance fails on non-<field> element
Inheritance at field level already has a correct error message

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

bzr revid: odo@openerp.com-20101210150355-jjdghifgyea07cv8
2010-12-10 16:03:55 +01:00
Olivier Dony aeed07950c [FIX] ir.ui.view.*: added missing simple and combined indices (suggestion from Ferdinand Gassauer)
lp bug: https://launchpad.net/bugs/580852 fixed

bzr revid: odo@openerp.com-20101210124716-okrkdqato09utpvx
2010-12-10 13:47:16 +01:00
Launchpad Translations on behalf of openerp 4c9e63a383 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101210050128-aqt5gre9oatbameb
2010-12-10 05:01:28 +00:00
Olivier Dony bb82904ba3 [FIX] fields.function: make sure all binary values can always be serialized as valid XML
Nnormally, binary fields should be 7-bit ASCII base64-encoded data, but sometimes
it's not the case, so we do additional sanity checks to make sure the binary values
can pass safely via xmlrpc as strings.

As a last resort we coerce the binary values to unicode to make sure they can
be safely serialized as utf-8-encoded values, always valid XML characters.
When this happens, decoding on the other endpoint is not likely to produce
the expected output, but this isjust a safety mechanism(in these cases base64
data or xmlrpc. Binary values should be returned instead by the function field.

In a future version we should probably switch to using XMLRPC Binary types always for
passing fields.binary values, but this requires more refactoring.

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

bzr revid: odo@openerp.com-20101209230742-gwf8e4zvmk43k6ln
2010-12-10 00:07:42 +01:00
Olivier Dony eb25611f00 [FIX] res.lang.unlink: renamed local variable that shadowed the enclosing type, preventing call to super()
bzr revid: odo@openerp.com-20101209150442-f47eucdfylpokagt
2010-12-09 16:04:42 +01:00
Olivier Dony 9daa68e67c [IMP] orm,base: added context to _constraints functions + use generic osv.osv.check_recursion()
lp bug: https://launchpad.net/bugs/525808 fixed

bzr revid: odo@openerp.com-20101209105733-j3uffwp4rl07nzc4
2010-12-09 11:57:33 +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
Launchpad Translations on behalf of openerp e2d025c961 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101209045022-g1ar37i6xtnr0jtq
bzr revid: launchpad_translations_on_behalf_of_openerp-20101209045802-ari4r0g7oouy55c8
2010-12-09 04:58:02 +00: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
niv-openerp 402236d40d [IMP] Just removed small debug message in system logs cron.
bzr revid: nicolas.vanhoren@openerp.com-20101208160553-g58841fmq93unt5y
2010-12-08 17:05:53 +01:00
niv-openerp a1b38101d8 [IMP] Added timeout int the cron job to get the system logs.
bzr revid: nicolas.vanhoren@openerp.com-20101208160335-00rlngburn1q04az
2010-12-08 17:03:35 +01:00
Olivier Dony cfa513123a [FIX] base,release: updated some remaining source files to AGPLv3 license
lp bug: https://launchpad.net/bugs/531401 fixed

bzr revid: odo@openerp.com-20101208141707-toesbs33sf71srlh
2010-12-08 15:17:07 +01:00
niv-openerp 3d3e843e7b [IMP] Cosmetic changes
bzr revid: nicolas.vanhoren@openerp.com-20101208134309-3rrvthpank14ao69
2010-12-08 14:43:09 +01:00
Olivier Dony a970c497a6 [IMP] license: renamed general license file, and included note about other applicable licenses
bzr revid: odo@openerp.com-20101208133325-rlrtmzao8kzdp31o
2010-12-08 14:33:25 +01:00
Olivier Dony 14b7e37bf5 [FIX] osv.obj_list is broken via RPC and should not be available anymore
lp bug: https://launchpad.net/bugs/632195 fixed

bzr revid: odo@openerp.com-20101208131328-gycbi36423txdnc1
2010-12-08 14:13:28 +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
Xavier Morel 0fe0c17068 [REM] @default attribute: not handled by the GTK client and not specified anywhere or by anyone
bzr revid: xmo@openerp.com-20101208103648-3qca263rux8g0030
2010-12-08 11:36:48 +01:00
Launchpad Translations on behalf of openerp 00f2f6b97d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101208044843-iaflyr3xboujht6p
2010-12-08 04:48:43 +00: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 8233e8b505 [FIX] reports: support for multi-company headers (pending improvements after v6.0)
bzr revid: odo@openerp.com-20101207161523-nxo1lz9u9edajbfa
2010-12-07 17:15:23 +01:00
Harry (OpenERP) e6ba188192 [MERGE] merged from sbh local branch
bzr revid: hmo@tinyerp.com-20101207102753-085jlu3mln64dc73
2010-12-07 15:57:53 +05:30
Sbh (OpenERP) 9b306538ae [IMP] view.rng :Add the invisible attribute in page,partner: set the invisible on History tab
bzr revid: sbh@tinyerp.com-20101207063132-ppgrics4oo7ia01q
2010-12-07 12:01:32 +05:30
Sbh (OpenERP) 8ef3e4349d [MERGE] Merge with lp:openobject-server
bzr revid: sbh@tinyerp.com-20101207061423-j1nkihudn306h2gz
2010-12-07 11:44:23 +05:30
Launchpad Translations on behalf of openerp 3bde229bc3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101207045745-va45z3pzzv6xten7
2010-12-07 04:57:45 +00:00
Olivier Dony 8d5d7b1cbe [FIX] base: missing import _() in base_module_upgrade
lp bug: https://launchpad.net/bugs/685949 fixed

bzr revid: odo@openerp.com-20101206141053-ckisp97vg8herdnr
2010-12-06 15:10:53 +01:00
Olivier Dony 9b25bd6eb4 [FIX] ir_values: revert GTK-specific hack for search_view_id after GTK client was fixed
bzr revid: odo@openerp.com-20101206131928-2ew6lqe1lz55vwh1
2010-12-06 14:19:28 +01:00
Olivier Dony 6f0660eaa0 [FIX] orm.read_group: support ordering by any field (not just m2o ones)
bzr revid: odo@openerp.com-20101206131818-ibah9gt409jbil3l
2010-12-06 14:18:18 +01:00
Olivier Dony 77134eca55 [FIX] report.trml2pdf: fix path to locate <images> in RML
lp bug: https://launchpad.net/bugs/586066 fixed

bzr revid: odo@openerp.com-20101206124052-01bp2395vxaenzry
2010-12-06 13:40:52 +01:00
Olivier Dony 988cd41e54 [MERGE] fix for search view bug 681479 + improved support for images in RML, both courtesy of P. Christeas
lp bug: https://launchpad.net/bugs/681479 fixed

bzr revid: odo@openerp.com-20101206121935-e5xkk685rj2e12ev
2010-12-06 13:19:35 +01:00
Harry (OpenERP) 0475e814dc [MERGE]
bzr revid: hmo@tinyerp.com-20101206121927-hikb1xzabqs46uzh
2010-12-06 17:49:27 +05:30
Launchpad Translations on behalf of openerp b18eabbd97 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101204051244-ovlrwt2mjmxq72kn
bzr revid: launchpad_translations_on_behalf_of_openerp-20101205044847-9vpsrsujiirbzrb3
2010-12-05 04:48:47 +00:00
P. Christeas ee07fda232 ir.values: do return the search_view_id of action windows [Bug 681479]
Partially revert cadc172a2cd09, that prevented both that field and
"search_view" from being read. While the latter one is expensive to
compute, the "search_view_id" is pretty harmless. GTK client (at least)
depends on that to select the appropriate search view.

bzr revid: p_christ@hol.gr-20101203164606-qdjfg0o7ybe0h2i1
2010-12-03 18:46:06 +02:00
P. Christeas dd0510428f sql_db: only do frame inspection when debugging
This affects the "Cursor not closed explicitly..." message.
The message is at a "warning" level, but the frame inspection added
some expensive overhead to each cursor open. So, avoid that unless we
are at debug mode.

Conflicts:

	bin/sql_db.py

bzr revid: p_christ@hol.gr-20101203164553-vudqkoqb0hpfsocj
2010-12-03 18:45:53 +02:00
Christophe Simonis 5cd8b368b2 [FIX] base: check external dependencies at module update
bzr revid: chs@openerp.com-20101203162250-y78gbf05yrcxm3nt
2010-12-03 17:22:50 +01:00
Olivier Dony 62182bdb31 [I18N] base: updated PO template after latest cleanup
bzr revid: odo@openerp.com-20101203161151-s0gvqzkdhtoot0g1
2010-12-03 17:11: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 78d254ad71 [ADD] base: yaml tests for basic domain expressions (including some for bug 626806), mostly courtesy of xrg
bzr revid: odo@openerp.com-20101203142525-xuf27cawn3j15lr7
2010-12-03 15:25:25 +01:00
Olivier Dony 170793a683 [MERGE] fix for bug 626806 by xrg - i.e. [(x2m,in,[])] should match nothing
lp bug: https://launchpad.net/bugs/626806 fixed

bzr revid: odo@openerp.com-20101203142342-2g5k64qoouuuxyti
2010-12-03 15:23:42 +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
Launchpad Translations on behalf of openerp f82d0e9477 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101203050425-dkipvzhhptluivtz
2010-12-03 05:04:25 +00:00
olt@tinyerp.com 774f3d8b6e [FIX] base: res.widget.user: (transparently) prevent adding the same widget to the same user twice
bzr revid: olt@tinyerp.com-20101202114435-ofym2ntp3pf5ikx2
2010-12-02 12:44:35 +01:00
Launchpad Translations on behalf of openerp 2fb88d7d14 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101201045818-0chsie3wfu7akdq5
bzr revid: launchpad_translations_on_behalf_of_openerp-20101202044646-fgoibpvnut416974
2010-12-02 04:46:46 +00: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
Launchpad Translations on behalf of openerp 4dd9ccb1b9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101130044803-uswrt8q7d2iyucgd
2010-11-30 04:48:03 +00:00
P. Christeas 12f5aa0a18 expression: fix "m2o, m2m in []" expressions, bug 626806
After some discussions, we decided that the desired behavior of the
ORM for one2many and many2many fields should be:
 (foobar_id,'in', []) => empty result, because the list is empty
 (foobar_id,'in',False) => find records that don't have a foobar

bzr revid: p_christ@hol.gr-20101129183413-yi1jzdwr1tis7d8t
2010-11-29 20:34:13 +02:00
François Degrave 0f1ab5e6ef [MERGE] base/rng: missing day_length added to gantt element
bzr revid: odo@openerp.com-20101129143043-vy2qh63vxeaie5uh
2010-11-29 15:30:43 +01:00
Olivier Dony 839eb5f1c8 [MERGE] orm.read_group: partial support for orderby (m2o only so far)
bzr revid: odo@openerp.com-20101129141204-beieaccpl23pqmge
2010-11-29 15:12:04 +01:00
Launchpad Translations on behalf of openerp 202723c7b9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101127045140-kh4vuhmulphhntbv
bzr revid: launchpad_translations_on_behalf_of_openerp-20101128044930-geqyn9ydfsvk8n1y
bzr revid: launchpad_translations_on_behalf_of_openerp-20101129045013-ma2pla5t73axbub0
2010-11-29 04:50:13 +00:00
Nguyen Thanh Phong 59d536d5ce Add additional currency codes for VND and other currencies that have direct reference rates from ECB (http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html)
VND doesn't have direct exchange rate from ECB, so the exchange rate for VND was picked up from Vietcombank, the de-factor foreign exchange rate for commercial activities

bzr revid: phongnt@phongnt-laptop-20101127080009-0bb6wjrcbqh5llv3
2010-11-27 15:00:09 +07: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
Olivier Dony 959d4f962e [IMP] report,fonts: fallback to default Adobe fonts when font is missing - pending improvement
We should maybe find a way to let users use their own fonts. At the moment only the 14 default Adobe fonts 
(cfr reportlab.reportbase.pdfmetrics.standardFonts) + the ones from customfonts.py will work...
Also got rid of the mapping for ZapfDingBast, as it is a symbol font that cannot be mapped to a regular one.

bzr revid: odo@openerp.com-20101126183043-mrzipe7mdw1zs6g8
2010-11-26 19:30:43 +01:00
Xavier Morel 5745dfcb5f [IMP] fix colspan on left-hand column of install wizards
bzr revid: xmo@openerp.com-20101126170930-h87debplwcnvzui5
2010-11-26 18:09:30 +01:00
Olivier Dony 38c5f46025 [IMP] report.customfonts: more robust fonts detection and loading
bzr revid: odo@openerp.com-20101126170705-en0wbjb3rna8r96b
2010-11-26 18:07:05 +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 8cc1c1086d [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101126152048-bkyrmnpihkzzn7u8
2010-11-26 16:20:48 +01:00
nvi-openerp d7eb66c71e [FIX] Fixed security problems with maintenance
bzr revid: nicolas.vanhoren@openerp.com-20101126140437-smuugpi07xa8u24b
2010-11-26 15:04:37 +01:00
nvi-openerp edf4981ded [merge]
bzr revid: nicolas.vanhoren@openerp.com-20101126134609-vyspfsb42t36s2wq
2010-11-26 14:46:09 +01:00
nvi-openerp fe7b86d77b [IMP] Improved wizard for publisher warranty contracts
bzr revid: nicolas.vanhoren@openerp.com-20101126133824-a0m6liazwl3x0z0k
2010-11-26 14:38:24 +01:00
nvi-openerp 6cd96a7742 [IMP] wip
bzr revid: nicolas.vanhoren@openerp.com-20101126131811-rmgjiy7i7tsu2pim
2010-11-26 14:18:11 +01:00
Olivier Dony 0228f8e889 [IMP] netsvc: order debug levels declaration according to priority
bzr revid: odo@openerp.com-20101126130225-o2stqws2mmg98bon
2010-11-26 14:02:25 +01:00
Xavier Morel ac0d91dd86 [ADD] base: web_icon for administration and sales applications
bzr revid: xmo@openerp.com-20101126110909-8p028y8rne2lha0e
2010-11-26 12:09:09 +01:00
P. Christeas 7c55e521a3 customfonts: search path for fonts, override the broken of reportlab
Several Linux distros still ship with a broken reportlab config, which
looks at "c:\winnt\fonts" for fonts!
Since they have not fixed that for months, we have to do their job and
have a custom search path of:
   - paths from the config file (ttfonts.search_path key)
   - sensible defaults for distros, considering os.name and os.uname
   - default reportlab path (opt-out with ttfonts.use_default_path=False)

The result is that we will have more chance of locating TTF fonts and
use them (as now required) in the PDF reports.

bzr revid: p_christ@hol.gr-20101126103459-5wv7crw3i3b56adr
2010-11-26 12:34:59 +02: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
Launchpad Translations on behalf of openerp 352bb205aa Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101126044921-9446pqhg2fetkj9v
bzr revid: launchpad_translations_on_behalf_of_openerp-20101126045439-w5rxmd2f3eukcno6
2010-11-26 04:54:39 +00:00
qdp-launchpad@tinyerp.com 5e35a7d806 [MERGE] merged the report server branch
bzr revid: qdp-launchpad@tinyerp.com-20101125181426-dk8asryszl0mqytu
2010-11-25 19:14:26 +01:00
P. Christeas, O. Dony c14af86177 [MERGE] many improvements regarding translations, logging, reports, http, speed, ...
bzr revid: odo@openerp.com-20101125175328-pmu07gj694r5n2es
2010-11-25 18:53:28 +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
Olivier Dony 6bbcab6df2 [IMP] module: no warning about missing english translation
bzr revid: odo@openerp.com-20101125171927-j68orn14dagff22r
2010-11-25 18:19:27 +01:00
Xavier Morel 8e06458e9d [ADD] base: method to fetch an act_window from its xml_id on ir.actions.act_window
Also used it to replace the corresponding code in ir.attachment and res.widget.wizard

bzr revid: xmo@openerp.com-20101125165720-62qphqpmt4fl2xcl
2010-11-25 17:57:20 +01:00
Xavier Morel 918c258dd4 [IMP] have res.widget.wizard return its initial act_window itself to avoid hardcoding it in the client
bzr revid: xmo@openerp.com-20101125144834-jblj68hf1hsso6vt
2010-11-25 15:48:34 +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
Xavier Morel 4f9212ee2f [ADD] a few demo widgets
bzr revid: xmo@openerp.com-20101125140336-w51ae3sewvdfbcwu
2010-11-25 15:03:36 +01:00
Olivier Dony ad490bdcf5 [IMP] orm.write: ignore unknown fields, more consistent with rest of API
bzr revid: odo@openerp.com-20101125135800-dzad2x864bn8p1ah
2010-11-25 14:58:00 +01:00
Xavier Morel eb3f4bdb25 [FIX] res_widget: use context correctly
bzr revid: xmo@openerp.com-20101125124834-daf5p22of6r9unvc
2010-11-25 13:48:34 +01:00
Xavier Morel 1da6f30f2b [FIX] res_widget: improve some labels/names
bzr revid: xmo@openerp.com-20101125124811-mrw9xa99bjurwm0h
2010-11-25 13:48:11 +01:00
Xavier Morel ec4644c6f1 [ADD] some more twitter widget for demo
bzr revid: xmo@openerp.com-20101125110900-6utcye5hs2p3zpx0
2010-11-25 12:09:00 +01:00
GPA (OpenERP) f4c509bcfb [MERGE] ir.ui.menu,rng: support for embedded web icons for menuitems
bzr revid: odo@openerp.com-20101125105002-o6pbzql6lsqhx60w
2010-11-25 11:50:02 +01:00
Yogesh Sakhreliya 456579b198 [FIX] add unique constraint in many2many field.
bzr revid: ysa@tinyerp.com-20101125093424-thmqvllabcx0sxpw
2010-11-25 15:04:24 +05:30
Yogesh Sakhreliya 9de9f34ca8 Merge with lp:openobject-server
bzr revid: ysa@tinyerp.com-20101125084117-zyr1ahoyb9awl583
2010-11-25 14:11:17 +05:30
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
Launchpad Translations on behalf of openerp 958bd383b7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101125045216-6u4oqrvi5hr8i6pz
2010-11-25 04:52:16 +00:00
OpenERP GTK R&D Team a5327f27f9 [MERGE] read_group: now returns count information for the groups
bzr revid: odo@openerp.com-20101124184433-eo54itrejuak0exp
2010-11-24 19:44:33 +01:00
Olivier Dony 30cb4b8891 [IMP] orm.orm: cleaned up comments after previous patches
bzr revid: odo@openerp.com-20101124184108-iw1up4jomysfoh85
2010-11-24 19:41:08 +01:00
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
Olivier Dony 7505e7d822 [FIX] websrv_lib: Darwin webdav workaround
bzr revid: odo@openerp.com-20101124173028-iumdj77clfhsnsuj
2010-11-24 18:30:28 +01:00
Olivier Dony 475667d384 [FIX] orm.import_data: also translate SQL constraints error messages that are not callable
bzr revid: odo@openerp.com-20101124172819-33ahiq3aacgwt8f2
2010-11-24 18:28:19 +01:00
Olivier Dony 03f3100346 [FIX] ir_actions: minor typo
bzr revid: odo@openerp.com-20101124164135-6qemb2nof0uzx2f2
2010-11-24 17:41:35 +01:00
Olivier Dony c34d2ae6d4 [FIX] res.user: code cleanup after merging previous patches
bzr revid: odo@openerp.com-20101124164105-xsd2nkit09g29gjl
2010-11-24 17:41:05 +01:00
Olivier Dony 276a54b0af [FIX] osv.osv: code cleanup after merging previous patches
bzr revid: odo@openerp.com-20101124164041-760b4zoidv0omu6c
2010-11-24 17:40:41 +01:00
Olivier Dony 458d7c7dea [FIX] addons.__init__: fixed mismatching logger API usage
bzr revid: odo@openerp.com-20101124163840-eyctlqtgjfq9h1u0
2010-11-24 17:38:40 +01:00
Olivier Dony af506691a3 [MERGE] merged second batch of fixes from xrg-pg84 branch
bzr revid: odo@openerp.com-20101124152707-ksfaru7en81x8xn2
2010-11-24 16:27:07 +01:00
vda (Open ERP) 097340e9a7 [FIX] Changed wizard field to many2many.
bzr revid: vda@tinyerp.com-20101124134814-0sm2ovho7uhglew7
2010-11-24 19:18:14 +05:30
vda (Open ERP) 4716280311 [FIX] proper function name.
bzr revid: vda@tinyerp.com-20101124133501-tda7mokabltu8gmr
2010-11-24 19:05:01 +05:30
vda (Open ERP) b676fca5e3 [FIX] Minor changes for wizard view action.
bzr revid: vda@tinyerp.com-20101124133205-puhsrloz66y96hbz
2010-11-24 19:02:05 +05:30
vda (Open ERP) 6de2cd6324 [FIX] Add openERP favourites global widget for all user.
bzr revid: vda@tinyerp.com-20101124120230-f4stb8s372dubkti
2010-11-24 17:32:30 +05:30
Yogesh Sakhreliya 6063442399 ir_sequece now compatible with multicompany and improve get_id method of ir_sequece objects.
bzr revid: ysa@tinyerp.com-20101124113628-9tppvqpfp00h4olg
2010-11-24 17:06:28 +05:30
gpa 1a6ab82f7b Improvement for the web client dash board
bzr revid: gpa@tinyerp.com-20101124104936-rk38vyhz7bll6f9r
2010-11-24 16:19:36 +05:30
apa-tiny f1817dae8d [IMP]:Improved internal and internal landscape report header for good alignment.
bzr revid: apa@tinyerp.com-20101124101030-h5qhqjfknsqhl8iy
2010-11-24 15:40:30 +05:30
P. Christeas 12f4f6232c sql_db: only do frame inspection when debugging
This affects the "Cursor not closed explicitly..." message.
The message is at a "warning" level, but the frame inspection added
some expensive overhead to each cursor open. So, avoid that unless we
are at debug mode.

bzr revid: p_christ@hol.gr-20101124094853-0ljr6nebkyya0eui
2010-11-24 11:48:53 +02:00
Don Kirkby 2e8ab9079a [FIX] workaround infinite loop while duplicating records in lp:673194
bzr revid: ysa@tinyerp.com-20101124094721-h831hkof77cuvaez
2010-11-24 15:17:21 +05:30
Tristan Hill (credativ) 2bf0a92b7f add error log message if raise exception on database connect
bzr revid: ysa@tinyerp.com-20101124094133-ayl5pppdjqkx534q
2010-11-24 15:11:33 +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
nvi-openerp d778be3341 [IMP] Improvement in the handling of res_logs
bzr revid: nicolas.vanhoren@openerp.com-20101124084127-05ht1rbg5zvhah1x
2010-11-24 09:41:27 +01:00
apa-tiny 5e6bc10216 [MERGE]
bzr revid: apa@tinyerp.com-20101124043000-7ldthiwx1eze1ss7
bzr revid: apa@tinyerp.com-20101124050445-3o2szdqh6ys7xens
2010-11-24 10:34:45 +05:30
Vir (Open ERP) d528bc6f81 [Merge]
bzr revid: vir@tinyerp.com-20101119044839-8cwlqycamcae42n6
bzr revid: vir@tinyerp.com-20101122044725-weeo06d2b5s2op3f
bzr revid: vir@tinyerp.com-20101123044335-es0ltyh2128liyea
bzr revid: vir@tinyerp.com-20101124050116-dd0n5f6ypvk58gtx
2010-11-24 10:31:16 +05:30
Launchpad Translations on behalf of openerp cb34b3f368 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20101124045811-vl5c0cch1o2gl9o5
2010-11-24 04:58:11 +00:00
apa-tiny 219edf4cab [MERGE]
bzr revid: apa@tinyerp.com-20101124043258-wp0uz522nvw398b7
2010-11-24 10:02:58 +05:30
P. Christeas 5d53dcc700 websrv_lib: update copyright and remove bogus note
The reference to the "ganeti" project has always been totally arbitrary
and false. It is true that some parts of "websrv_lib" have been based
on Python's BaseHTTPServer and SimpleHTTPServer classes, but not more
than that. Overriding and perhaps resembling to parent classes is the
most common thing in OO programming. But never copied or knew about
any "ganeti" project whatsoever. (actually, the code mentioned at the
url admits itself that it copies the BaseHTTPServer, a common
denominator)

Git history to your help, all the code evolution is clearly recorded.

bzr revid: p_christ@hol.gr-20101123183357-fjroqywizql2qdkk
2010-11-23 20:33:57 +02:00
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
Olivier Dony 6ff627d275 [IMP] ir.model.data,res.log: allow marking res.log entries as read upon creation via context + do it during module install to avoid useless log spam
bzr revid: odo@openerp.com-20101123160506-qsxa7gm5j8scphdz
2010-11-23 17:05:06 +01:00
P. Christeas 7165010fd6 ir.translate: revert some pg84 argument from the cherry-picks
bzr revid: p_christ@hol.gr-20101123155820-ltqymky8482k8l9l
2010-11-23 17:58:20 +02:00
P. Christeas a2ee48478a websrv_lib: add quirk for Darwin 9.x.x webdav clients.
They will report "HTTP/1.0" to us, while they support (and need) the
authorisation features of HTTP/1.1 .

This makes WebDAV work for some Mac OSX versions.

bzr revid: p_christ@hol.gr-20101123154448-0z7s5o77256cj1tu
2010-11-23 17:44:48 +02:00
P. Christeas c2c264467f fields: conform some default arguments to the coding standards
Side-effects may appear, let us test.

bzr revid: p_christ@hol.gr-20101123154408-qlkittdb7ogrqq2s
2010-11-23 17:44:08 +02:00
P. Christeas ec2c32e2fe ir.model: simplify some defaults
bzr revid: p_christ@hol.gr-20101123154335-tl2jm6litwx3ysro
2010-11-23 17:43:35 +02:00
P. Christeas 0c1061e4de module: improve over previous commit, fix mutable args
Conflicts:

	bin/addons/base/module/module.py

bzr revid: p_christ@hol.gr-20101123154306-j88k617evep9napa
2010-11-23 17:43:06 +02:00
Ferdinand Gassauer 09099f1ed8 module: sorted Features
returns alphabetically sorted Menu,Views,Reports to make these lists
readable for humans.

bzr revid: p_christ@hol.gr-20101123154255-4iazp4ec7wisn2sq
2010-11-23 17:42:55 +02:00
P. Christeas c5b99753ea ir.attachment: revise the access control code, let it be overriden
There was a fundamental problem when a user, through the 'document' module
would try to write into his personal folder; the res.users model won't be
writable by normal users. So, have all this code in a _single_ function,
which will be redefined by document.

Also follow the v6 API for access control, don't just lookup at ir.model.access.

Conflicts:

	bin/addons/base/ir/ir_attachment.py

bzr revid: p_christ@hol.gr-20101123154212-pphsnyp2rsmbjf72
2010-11-23 17:42:12 +02:00
P. Christeas a62f0bede4 ir.model: mutable argument fix
bzr revid: p_christ@hol.gr-20101123154032-tuoe1aiy9wpnjp2y
2010-11-23 17:40:32 +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 1fed78619f websrv_lib: abort request on partial headers.
While searching for the KTHML bug, noticed that partial http requests
would falsely be honoured. Instead, we must check if the full headers
(including the blank line) have been parsed before we dispatch the
request to the virtual handler class.

Conflicts:

	bin/service/websrv_lib.py

bzr revid: p_christ@hol.gr-20101123153558-oh44mjkhwjaebwow
2010-11-23 17:35:58 +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 652be11b57 rml2pdf: better message if a font is not available.
Since 91422704d965268f, specifying a font that is not registered with
pdfmetrics will raise an exception. Now, improve that exception to
help the user understand what has gone wrong.

Note: rather than hiding the fact that some font is missing, the admin
should see this error and try to either fix the report (to use a known
font), or register more fonts with the customfonts.py mechanism.

bzr revid: p_christ@hol.gr-20101123153235-c1yri33ptaydb5eo
2010-11-23 17:32:35 +02:00
P. Christeas 3a220a0214 res.user: cleanup defaults, use 1 sql query per login (from 3)
bzr revid: p_christ@hol.gr-20101123153223-2u34e4eszt5aflv1
2010-11-23 17:32:23 +02:00
P. Christeas f9f0d929e7 ir.attachment: mark 'type' and 'company_id' with change_defaults
Other fields of attachments (like the directories, in document) should
have their default properties depending on these.

bzr revid: p_christ@hol.gr-20101123153159-wpus8bxls1q03ks9
2010-11-23 17:31:59 +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 49dc2ec5ec ir.ui.menu: Fix default args, no need for lambda in _defaults.
bzr revid: p_christ@hol.gr-20101123152551-dr7dov1fip2r7jet
2010-11-23 17:25:51 +02:00
P. Christeas e037e96f6d module: fix usage of new get_module_resource()
It will return False, now, if the file is missing. No need to perform
os.path.exists().

bzr revid: p_christ@hol.gr-20101123152234-4iptp8yzboq3gicz
2010-11-23 17:22:34 +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 b4e5c51311 res_user: fix default args, close db cursors.
Conflicts:

	bin/addons/base/res/res_user.py

bzr revid: p_christ@hol.gr-20101123152029-c823isjqrpml7dva
2010-11-23 17:20:29 +02:00
P. Christeas 3e3270264f trml2pdf: Fix using of custom fonts in reports
That snippet of code practically meant "don't use anything but the
standard fonts (by name) in the report". It obviously wanted to prevent the
rml2pdf engine from crashing at a non-existent font.
Well, if the report specifies a font that cannot be mapped by the system,
it should preferably raise an exception (and ask us to fix the report), not
silently ignore the font.
Case 1: the internationalized reports, where font name is used to select a
Unicode-capable font.
Case 2: l10n_ch, where the OCR-B font had to be used (perhaps legal req.)

bzr revid: p_christ@hol.gr-20101123152002-es404ul29rsohzqd
2010-11-23 17:20:02 +02:00
P. Christeas 6e893f1e9e rml2pdf: use ustr() instead of unicode()
When strings are 8-bit utf8-encoded, unicode will break with the usual:
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xce in position ..
message. ustr() will have better luck in those cases.

Conflicts:

	bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123151930-8r9q9gg7r902i2nv
2010-11-23 17:19:30 +02:00
P. Christeas 1a0a2535a2 http_server: allow requests to "see" the protocol of the server
Needed for WebDAV.

Conflicts:

	bin/service/http_server.py

bzr revid: p_christ@hol.gr-20101123151740-ovx7jg8yp3070qqe
2010-11-23 17:17:40 +02:00
P. Christeas 792c8eba19 trml2pdf: cleaner import of StringIO
bzr revid: p_christ@hol.gr-20101123151444-sbnfj0fu1nkl2pkr
2010-11-23 17:14:44 +02:00
P. Christeas 1a5e3cf073 pdf customfonts: allow absolute paths in registered fonts
bzr revid: p_christ@hol.gr-20101123151131-v0v1qfkiajh0cw73
2010-11-23 17:11:31 +02:00
P. Christeas 03b4e87cca report customFonts: have debugging logs for fonts mapped.
Since this is platform-dependant, it is good to be able to debug
if that algorithm worked and located our TTF fonts.

bzr revid: p_christ@hol.gr-20101123151124-wk5r5fac00kpu3f4
2010-11-23 17:11:24 +02:00
P. Christeas 27ae6f3522 report/render: fixes from xrg branch
This should log the rendering exceptions for reports. Also fix am error at
custom fonts, suppress a message.

Conflicts:

	bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123151110-bckon1ji7hul20mp
2010-11-23 17:11:10 +02:00
P. Christeas d1347d0b0d Fix rml2pdf custom ttf fonts.
The attempt to put checks in that code had broken it.

bzr revid: p_christ@hol.gr-20101123150945-012xrvhz3ya2watl
2010-11-23 17:09:45 +02:00
P. Christeas 2f2ed1d138 rml2pdf: fix logging of exceptions.
exception() cannot be called without a string, yet it is even better to
demote those logs to warnings.

Conflicts:

	bin/report/render/rml2pdf/utils.py

bzr revid: p_christ@hol.gr-20101123150903-zgiyob943ivcftkq
2010-11-23 17:09:03 +02:00
nvi-openerp 60096982cf [IMP] Removed useless feature.
bzr revid: nicolas.vanhoren@openerp.com-20101123144712-s59yvzvp6czoq27n
2010-11-23 15:47:12 +01:00
nvi-openerp 226bbfee1b [IMP] Refactoring to improve res_log
bzr revid: nicolas.vanhoren@openerp.com-20101123143424-kj9uot206ei491yf
2010-11-23 15:34:24 +01:00