Commit Graph

4586 Commits

Author SHA1 Message Date
Antonin Bourguignon fb5288e93c [IMP] get_path code; return a tuple instead of a string
also add a helper

bzr revid: abo@openerp.com-20130117183342-rhfnxh4y777rruqt
2013-01-17 19:33:42 +01:00
Antonin Bourguignon c33f6f7cca [MERGE] trunk
bzr revid: abo@openerp.com-20130117160622-3ham9h9c0egj1w4j
2013-01-17 17:06:22 +01:00
Antonin Bourguignon c588e762d4 [IMP] simplify the new config reference mechanism code
bzr revid: abo@openerp.com-20130117160546-mg9g9zrbvp4poly6
2013-01-17 17:05:46 +01:00
Antonin Bourguignon 6b926883cc [IMP] add a missing import (exceptions)
bzr revid: abo@openerp.com-20130117155003-5akv67tylaz59s7l
2013-01-17 16:50:03 +01:00
Antonin Bourguignon 8214854b79 [IMP] doc
bzr revid: abo@openerp.com-20130117144755-r9oboeaw8rr1seqa
2013-01-17 15:47:55 +01:00
Vo Minh Thu a4120a879a [IMP] long polling: disable the watchdog for the WorkerLongPolling, added command-line option for its port.
bzr revid: vmt@openerp.com-20130117103057-12ez48kj48pntb1g
2013-01-17 11:30:57 +01:00
Antonin Bourguignon 70890bfa32 [WIP] introduce a way to reference specific config options
bzr revid: abo@openerp.com-20130116171454-s4tt2f6le80oruc0
2013-01-16 18:14:54 +01:00
Antonin Bourguignon ff25f7a3d4 [IMP] use a var to store the menuitem separator
makes it easier to modify
makes it possible to import anywhere

bzr revid: abo@openerp.com-20130116171411-iugmyk4vqjewko2z
2013-01-16 18:14:11 +01:00
Xavier Morel 3ee58b2a23 [IMP] don't reimplement randint manually
bzr revid: xmo@openerp.com-20130116143556-qlagrw7qhpuk8fuy
2013-01-16 15:35:56 +01:00
Antonin Bourguignon d2ea37e207 [MERGE] trunk
bzr revid: abo@openerp.com-20130116104947-wfsas5sps00cgs0l
2013-01-16 11:49:47 +01:00
Xavier Morel bffe30c15b [IMP] Use StringIO rather than io.BytesIO, avoid deprecated operator
Rest of OpenERP code uses StringIO, consistency is probably a good
idea there: if it needs to be fixed for p3 compatibility it can be
fixed everywhere, existing io.BytesIO calls may be missed or
ill-interpreted.

bzr revid: xmo@openerp.com-20130116104637-o1qyx38jjppg6oqr
2013-01-16 11:46:37 +01:00
Antonin Bourguignon fc58729b2f [WIP] introduce a way to reference specific config options
bzr revid: abo@openerp.com-20130115174705-qldpq3le1ul4nh0j
2013-01-15 18:47:05 +01:00
Thibault Delavallée 229af47ec9 [MERGE] Foward-port server 7.0 until 4787.
bzr revid: tde@openerp.com-20130115100405-rc75cueauugdsu39
bzr revid: tde@openerp.com-20130115141905-90mzlbai3vwwi84a
2013-01-15 15:19:05 +01:00
Vo Minh Thu b146cd6fec [ADD] oe: added cron sub-command to run a single process dedicated to cron jobs.
bzr revid: vmt@openerp.com-20130115140110-fwu7yb2v0sj3oqqv
2013-01-15 15:01:10 +01:00
Olivier Dony 4eac510461 [FIX] ir.mail_server: properly handle the --smtp-ssl command-line option + map it to STARTTLS as a safer default
bzr revid: odo@openerp.com-20130115124058-81kgv0cy9jp96ln4
2013-01-15 13:40:58 +01:00
Fabien Pinckaers c095e2d340 [FIX] document management, file do not exists
bzr revid: fp@tinyerp.com-20130114174355-ygieirm80j9ftixx
2013-01-14 18:43:55 +01:00
Olivier Dony 3ad16170f3 [MERGE] tools.translate: fix extraction of translation terms from mako source files, courtesy of Niels Huylebroeck (Agaplan)
bzr revid: odo@openerp.com-20130114112831-87gmdtqzaa55zssf
2013-01-14 12:28:31 +01:00
niv-openerp d211ac7798 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130114102410-m60y4kh8o69u00hc
2013-01-14 11:24:10 +01:00
Olivier Dony ef4fb0f6ba [FIX] apps: make warning messages translatable
bzr revid: odo@openerp.com-20130111175905-a50b1adne55dekrt
2013-01-12 06:59:05 +13:00
Olivier Dony 8e5f0e2ce2 [FIX] fields.date[time]: context_today()/context_timestamp() should fallback to user TZ if context TZ is missing
This takes care of cases where the context is missing,
e.g. for workflow-based operations, and is similar
to the way tools.translate._() falls back to the user
language.

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

bzr revid: odo@openerp.com-20130111175717-u8r1t7s8872bz2rx
2013-01-12 06:57:17 +13:00
Olivier Dony ecc56794cd [FIX] ir.mail_server: correct fallback to smtp parameters provided in server config/command-line
bzr revid: odo@openerp.com-20130111161201-3w8o2voiauxyvxzz
2013-01-12 05:12:01 +13:00
Launchpad Translations on behalf of openerp 4345556628 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130112054022-r3v2m3r8ftr373kl
bzr revid: launchpad_translations_on_behalf_of_openerp-20130113052739-ol5rj9c4s6r9u6gh
bzr revid: launchpad_translations_on_behalf_of_openerp-20130114051737-tqxmwkgixvl7dxd8
2013-01-14 05:17:37 +00:00
Vo Minh Thu 8119d89200 [ADD] oe web: run an OpenERP web process.
bzr revid: vmt@openerp.com-20130111153113-ue2ybx33e2gh99sx
2013-01-11 16:31:13 +01:00
Christophe Matthieu 0c59cb52c9 [FIX] res_partner: kanban view : update contact avatar on edit mode (for company partner)
bzr revid: chm@openerp.com-20130111145459-e2rp9o3bmh2p679i
2013-01-11 15:54:59 +01:00
Quentin (OpenERP) 39bfcd23ea [FIX] base: GBP currency symbol should be before the amount
bzr revid: qdp-launchpad@openerp.com-20130111114012-xm19xp9glbn3qnn2
2013-01-11 12:40:12 +01:00
Launchpad Translations on behalf of openerp 6da448e0ad Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130108060408-8nb3941v15q9ybdf
bzr revid: launchpad_translations_on_behalf_of_openerp-20130109055200-8b1ngo68e9purey3
bzr revid: launchpad_translations_on_behalf_of_openerp-20130110053544-j7oyp5nohajb0nj8
bzr revid: launchpad_translations_on_behalf_of_openerp-20130111052135-l323k3ttzdy0o9km
bzr revid: launchpad_translations_on_behalf_of_openerp-20130111052208-h19znnqin0y82wvx
2013-01-11 05:22:08 +00:00
niv-openerp cb33e09d1b Socket is inited by master process
bzr revid: nicolas.vanhoren@openerp.com-20130110163314-449euw1z69eebtpz
2013-01-10 17:33:14 +01:00
niv-openerp 383314f273 First version working with multicorn
bzr revid: nicolas.vanhoren@openerp.com-20130110161936-4515hhdlamd3d25r
2013-01-10 17:19:36 +01:00
Thibault Delavallée ea21344da5 [MERGE] Forward porting of the 7.0 server branch inside trunk until rev4775.
bzr revid: tde@openerp.com-20130110125122-b525s5h1cbrwtxzb
2013-01-10 13:51:22 +01:00
niv-openerp 4db73a4c7c merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20130108090624-cubi563m34f1j6ab
2013-01-08 10:06:24 +01:00
Xavier ALT 475d2ec5b4 [MERGE] win32: use 'net' command for service start/stop operation
* We have to wait for complete service stop before trying to re-start
    OpenERP service, otherwise service manager will complain that the
    service is already running - and thus preventing to it start.
      'sc' command only send a query to service manager without waiting
    for completion - instead we use 'net' command which wait for complete
    start/stop operation.

bzr revid: xal@openerp.com-20130107174846-745eqpvp2lhskspi
2013-01-07 18:48:46 +01:00
Olivier Dony 83171d551a [FIX] ir.cron: cron list makes inactive cron jobs hard to spot
bzr revid: odo@openerp.com-20130107171720-foxippaaib6jb0zm
2013-01-07 18:17:20 +01:00
Xavier ALT 44d536d40d [FIX] win32: use 'net' command for service start/stop operation
* We have to wait for complete service stop before trying to re-start
    OpenERP service, otherwise service manager will complain that the
    service is already running - and thus preventing to it start.
      'sc' command only send a query to service manager without waiting
    for completion - instead we use 'net' command which wait for complete
    start/stop operation.

bzr revid: xal@openerp.com-20130107162302-xtf44nm10859203w
2013-01-07 17:23:02 +01:00
Launchpad Translations on behalf of openerp d0153b4df6 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130105053946-cw09iqtcvoz967j1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130106053016-99l6yng147p1onxu
bzr revid: launchpad_translations_on_behalf_of_openerp-20130107054358-g0wq2uyjuvglud9y
2013-01-07 05:43:58 +00:00
Launchpad Translations on behalf of openerp c05ea3a6ea Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130105050400-1q6t3vjffmd78n17
bzr revid: launchpad_translations_on_behalf_of_openerp-20130106044537-2bzz6xxb7y82g716
2013-01-06 04:45:37 +00:00
Niels Huylebroeck 9db9138056 [FIX] When extracting strings from mako reports we specify a correcter method for string extraction.
lp bug: https://launchpad.net/bugs/1096138 fixed

bzr revid: nh@agaplan.eu-20130104171631-p72mjfkfsvm2tdr8
2013-01-04 18:16:31 +01:00
Vo Minh Thu 013efb71cb [MERGE] Forward port of 7.0 until rev. 4767.
bzr revid: vmt@openerp.com-20130104093343-xtbw4tphmlupahuv
2013-01-04 10:33:43 +01:00
Launchpad Translations on behalf of openerp 7212971359 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121222062604-dkriii8eozvsup5y
bzr revid: launchpad_translations_on_behalf_of_openerp-20121223044904-96hdn6ba6yrv4f9j
bzr revid: launchpad_translations_on_behalf_of_openerp-20121226044702-qvjpmsxaacy1cg43
bzr revid: launchpad_translations_on_behalf_of_openerp-20121229050621-bg925wq3m04p2g71
bzr revid: launchpad_translations_on_behalf_of_openerp-20121229050125-ezgc0pyinpf7cjpa
bzr revid: launchpad_translations_on_behalf_of_openerp-20121231044027-9ufahl14z8fnhu6p
bzr revid: launchpad_translations_on_behalf_of_openerp-20130101044603-wg53ihk00q2059zn
bzr revid: launchpad_translations_on_behalf_of_openerp-20130103044748-vijpm6xa5a4wkx8s
bzr revid: launchpad_translations_on_behalf_of_openerp-20130104044725-gnjicg5umjgca6x4
bzr revid: launchpad_translations_on_behalf_of_openerp-20121227052240-6m8i7kropwavbcnh
bzr revid: launchpad_translations_on_behalf_of_openerp-20121228051144-leldhj31i0soxbew
bzr revid: launchpad_translations_on_behalf_of_openerp-20121229050213-cxzd31aqqltp6q2x
bzr revid: launchpad_translations_on_behalf_of_openerp-20121230052006-x87nblyyoe179wg8
bzr revid: launchpad_translations_on_behalf_of_openerp-20121231044049-m31tcl22nog279qx
bzr revid: launchpad_translations_on_behalf_of_openerp-20130101044622-7p5h1mf14m4tlue5
bzr revid: launchpad_translations_on_behalf_of_openerp-20130102043722-j7bk1uojgtgsz7u1
bzr revid: launchpad_translations_on_behalf_of_openerp-20130103044815-xswvowa7jeizv4jk
bzr revid: launchpad_translations_on_behalf_of_openerp-20130104044801-0v8fmmv0jl7itv9b
2013-01-04 04:48:01 +00:00
Christophe Simonis f221449d51 [FIX] we are not in alpha anymore
bzr revid: chs@openerp.com-20130103170809-337pt3cjzvi82y17
2013-01-03 18:08:09 +01:00
Thibault Delavallée 0f4cd7b133 [IMP] html_sanitize: keep email adresses formatted like '\<raoul@grosbedon.fr\>' in the html to sanitize; before this revision they were simply removed as incorrect html code.
bzr revid: tde@openerp.com-20130103135649-ngbhs3n7pa86qnl5
2013-01-03 14:56:49 +01:00
Niels Huylebroeck 18841cf6eb [FIX] base: allow searching in multicompany environment on res_partner.
lp bug: https://launchpad.net/bugs/1094212 fixed

bzr revid: nh@agaplan.eu-20130103130448-zzh00ari2ijra28z
2013-01-03 14:04:48 +01:00
Launchpad Translations on behalf of openerp f659d305f7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130103053838-8dc22w7xc4pekn1v
bzr revid: launchpad_translations_on_behalf_of_openerp-20130103053926-saljmu2wubie130o
bzr revid: launchpad_translations_on_behalf_of_openerp-20130103053929-zhnxa8yb58llx12y
2013-01-03 05:39:29 +00:00
Xavier ALT 2dfc3cbc6a [MERGE] OPW 572488: report sxw/odt: fix inconsistent duplicate content/meta/style files within generated sxw/odt
forward-port of v6.0 server revid: xal@openerp.com-20130102152925-h81qv2fx300oakzv

bzr revid: xal@openerp.com-20130102164057-lkr39vbtnk0zndgs
2013-01-02 17:40:57 +01:00
Christophe Matthieu 21c5425d89 [IMP] mail_sanitize: simplification of the regular expression
bzr revid: chm@openerp.com-20130102162544-jfwdfqx2ruf0x1q2
2013-01-02 17:25:44 +01:00
Christophe Matthieu 6a07b69889 [IMP] html_sanitize: test with assertIn
bzr revid: chm@openerp.com-20130102161458-4pvpvfb1shmt0sjy
2013-01-02 17:14:58 +01:00
Christophe Matthieu a4e7fa97f4 [IMP] mail sanitize: add special email address for escape in the sanitizer
bzr revid: chm@openerp.com-20130102090040-yh0vdv8b3mtwoebh
2013-01-02 10:00:40 +01:00
Launchpad Translations on behalf of openerp de4ba1084a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121230055035-68ul1nfj2blt5tpt
bzr revid: launchpad_translations_on_behalf_of_openerp-20121231051559-aw01koucw31ou6ev
bzr revid: launchpad_translations_on_behalf_of_openerp-20130101051904-0ghaklrif6nu8v13
bzr revid: launchpad_translations_on_behalf_of_openerp-20130102052515-osk45kf8joxus1le
2013-01-02 05:25:15 +00:00
Christophe Matthieu 71a92f46e4 [FIX] tools: html_sanitize
bzr revid: chm@openerp.com-20121231154451-0guqjid92rfndghp
2012-12-31 16:44:51 +01:00
Antony Lesuisse 6c6fa1b7ee [FIX] memory logging for cron workers
bzr revid: al@openerp.com-20121229133616-mbx0732l1uvyb1eo
2012-12-29 14:36:16 +01:00
Antony Lesuisse 2e01a395db [FIX] workers memory limits better help
bzr revid: al@openerp.com-20121229132216-zfk4ipw4p6mbgxnj
2012-12-29 14:22:16 +01:00
Antony Lesuisse 551e6bc78d [IMP] memory usage logging
bzr revid: al@openerp.com-20121229125912-rlt4g0b6xhajqxwm
2012-12-29 13:59:12 +01:00
Launchpad Translations on behalf of openerp 667d98cab0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121228053555-9fpc1mj7ur0a5tbd
bzr revid: launchpad_translations_on_behalf_of_openerp-20121229053621-25bpaf17lvsnyr4e
bzr revid: launchpad_translations_on_behalf_of_openerp-20121229053655-b3agh60e70at492g
2012-12-29 05:36:55 +00:00
Christophe Simonis 4857a8a020 [FIX] module loading: call adapt_version() instead of computing it ourself
bzr revid: chs@openerp.com-20130117135108-a4wt4wtbtfdwiui3
2013-01-17 14:51:08 +01:00
Christophe Simonis 3574038ffd [FIX] apps: install_from_url: fix install condition + better logging
bzr revid: chs@openerp.com-20130117132924-ejzbkh5przqi6hwf
2013-01-17 14:29:24 +01:00
Olivier Dony 7a78800d5c [MERGE] Update setup.py to properly package docutils data for Windows + reorder Settings top menus for Apps integration
bzr revid: odo@openerp.com-20130117102102-9arm888hx5vaiunn
2013-01-17 11:21:02 +01:00
Olivier Dony df69f4b08a [FIX] ir.module: installation from urls: better logging + fix mixing local and remote modules in one call
(empty module URL means local module is available and should be installed)

bzr revid: odo@openerp.com-20130117012312-kwr1iaf590ll4wm1
2013-01-17 02:23:12 +01:00
Christophe Simonis c10d28e4e6 [FIX] orm: SUPERUSER is not restricted by groups on fields
bzr revid: chs@openerp.com-20130116164025-qns65cb78p8p57m1
2013-01-16 17:40:25 +01:00
Launchpad Translations on behalf of openerp 5880f9aa75 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20130116055224-nyvhjk7xo4etfazv
bzr revid: launchpad_translations_on_behalf_of_openerp-20130116055259-2hpcs7r52n0z59cy
bzr revid: launchpad_translations_on_behalf_of_openerp-20130116055303-l47hpzm5yz18i8q7
2013-01-16 05:53:03 +00:00
Christophe Simonis fec027e832 [IMP] reorder modules menus
bzr revid: chs@openerp.com-20130115104015-5ytx00t0b5230aaf
2013-01-15 11:40:15 +01:00
Frédéric van der Essen 0eac2ff48e [MERGE] from upstream
bzr revid: fva@openerp.com-20121228122804-c4t1z7x0zy2nyif0
2012-12-28 13:28:04 +01:00
Launchpad Translations on behalf of openerp e3d2c92fc6 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121228051100-hd4rs419glzcq4t9
2012-12-28 05:11:00 +00:00
Fabien Pinckaers aa86fb2bc1 [IMP] custom model allowed
bzr revid: fp@tinyerp.com-20121227172825-lny2fobb5g89edca
2012-12-27 18:28:25 +01:00
Fabien Pinckaers a74d50d220 [IMP] support for lxml <2.3.1
bzr revid: fp@tinyerp.com-20121227163324-uloesoeixirmdtka
2012-12-27 17:33:24 +01:00
Quentin (OpenERP) eec2a5c96c [FIX] base, res.partner.form view: removed group no one on title field as this field is sometimes filled (migration, contact creation from lead...) and sometimes used as well (in reports). Besides there is no good reason to hide it
bzr revid: qdp-launchpad@openerp.com-20121227142116-zl8n0v550pbf12ju
2012-12-27 15:21:16 +01:00
Thibault Delavallée 1c7b1b53d4 [IMP] sanitizer: improved logger message if crashed during sanitize.
bzr revid: tde@openerp.com-20121227092614-0ihi5sw5uuyboahk
2012-12-27 10:26:14 +01:00
Launchpad Translations on behalf of openerp fc30d0cdc0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121224043910-40kmjctd0vsk40e4
bzr revid: launchpad_translations_on_behalf_of_openerp-20121225044716-jkvfe6uzseq8kibu
bzr revid: launchpad_translations_on_behalf_of_openerp-20121226043855-sxdshan9dl7zfxjl
bzr revid: launchpad_translations_on_behalf_of_openerp-20121227052225-be2juv5iu3hyr8gh
2012-12-27 05:22:25 +00:00
Thibault Delavallée be5118c704 [DOC] Added some comments. Updated failure message. Added a logging message when not capable of parsing.
bzr revid: tde@openerp.com-20121226164354-tjquf1zdyr90tl5e
2012-12-26 17:43:54 +01:00
Thibault Delavallée d7185be38c [IMP] html_sanitize: now uses the builtin cleaner of lxml.html. We also allows style attribute; the cleaner ensures no javascript or malicious code goes through those attributes. Updated and added tests for the sanitizer, especially about malicious code, and EDI-like html code.
bzr revid: tde@openerp.com-20121226162505-8rq060p375z1k9il
2012-12-26 17:25:05 +01:00
Launchpad Translations on behalf of openerp 980e61f7f6 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121222065425-11jso5coijmog3cv
bzr revid: launchpad_translations_on_behalf_of_openerp-20121223050740-6tjeryov28gogllv
bzr revid: launchpad_translations_on_behalf_of_openerp-20121224050954-9ophyas8vcd5i25j
bzr revid: launchpad_translations_on_behalf_of_openerp-20121225051527-2pztk85yutorsknl
bzr revid: launchpad_translations_on_behalf_of_openerp-20121226051717-qo56hnplkzd9en3p
bzr revid: launchpad_translations_on_behalf_of_openerp-20121227055246-wirga2xl0474l7md
2012-12-27 05:52:46 +00:00
Launchpad Translations on behalf of openerp c5e5201546 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121222051100-uj56wf2s12hip7c9
bzr revid: launchpad_translations_on_behalf_of_openerp-20121223043949-l8ore8omoj3zz7j6
2012-12-23 04:39:49 +00:00
Olivier Dony 75c9cf255a [FIX] ir.cron: avoid passing the lock-holding cursor to the job, as many batch jobs need to commit/rollback
Passing a dedicated cursor to the cron job is necessary to
avoid spurious commit/rollbacks releasing the cron lock on
the job row - causing duplicate executions in some cases.

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

bzr revid: odo@openerp.com-20121222011355-te4osnedofct0p1u
2012-12-22 02:13:55 +01:00
Olivier Dony d33266dc60 [FIX] res.config: install local modules directly, only use apps.openerp.com for missing ones
bzr revid: odo@openerp.com-20121221204539-u3h92damvgbd0539
2012-12-21 21:45:39 +01:00
Fabien Pinckaers 013af8477f [IMP] mail serveur active
bzr revid: fp@tinyerp.com-20121221195614-pfk4kbmquzmhrgbc
2012-12-21 20:56:14 +01:00
Olivier Dony 2618c16502 [I18N] Update translation template for latest changes - ready for 7.0 release
bzr revid: odo@openerp.com-20121221171030-rn5ny3bif4y7y4vi
2012-12-21 18:10:30 +01:00
Raphael Collet 534b07c3c2 [MERGE] lp:~serpent-consulting-services/openobject-server/trunk-956898-SerpentCS (enable multiple email addresses in server actions)
bzr revid: rco@openerp.com-20121221163755-saafbs7pb8bxyrsf
2012-12-21 17:37:55 +01:00
Raphael Collet 940fc2fa85 [IMP] ir.actions.server: improve code of email actions
bzr revid: rco@openerp.com-20121221163359-bfv218b315r3z9wr
2012-12-21 17:33:59 +01:00
Olivier Dony 65405e956c [FIX] rml reports: no hardcoded template pageSize - is set by company header/footer to A4 or US Letter
bzr revid: odo@openerp.com-20121221154906-urv7cxsudhmu8nl5
2012-12-21 16:49:06 +01:00
Olivier Dony 94cfed4d17 [FIX] res.company: default company info position incorrect in US Letter format
bzr revid: odo@openerp.com-20121221154426-4ligi2c9vwdht3a4
2012-12-21 16:44:26 +01:00
Raphael Collet c9bc74c5c9 [MERGE] lp:~therp-nl/openobject-server/ronald@therp.nl_trunk_lp1009014_new (improve transient models vacuum)
bzr revid: rco@openerp.com-20121221153122-q6j8vatd2xfmqr3n
2012-12-21 16:31:22 +01:00
Raphael Collet 8ead65d82a [IMP] orm: fix vacuum of transient model
bzr revid: rco@openerp.com-20121221152914-qs1s9h1zwnyzft1m
2012-12-21 16:29:14 +01:00
Raphael Collet e7ce4a4529 [MERGE] from trunk
bzr revid: rco@openerp.com-20121221134259-scc92nby1dn91pe8
2012-12-21 14:42:59 +01:00
Olivier Dony f3a71a1dc3 [MERGE] base: improved english wording, suggestions courtesy of OpenERP Community
bzr revid: odo@openerp.com-20121221133859-nvpyq07sb3r55yc1
2012-12-21 14:38:59 +01:00
Olivier Dony 4fd1bc7b3c [IMP] cron: remove useless pooljobs and schedule_cron_jobs methods
The pooljobs and scheduled_cron_jobs stuff was only used to
delay the processing of cron jobs until after the registry
was fully loaded. However this is already the case because
RegistryManager.new() only sets the flag at the end of the
init step.
The flag was named `registry.cron` but simply meant that the
registry was fully loaded and ready, so it is simpler to
rename it to `registry.ready`.

In multiprocess mode this flag is enterily irrelevant
so there is no need to selectively set it to True or
False. `registry.ready` is simpler.

bzr revid: odo@openerp.com-20121221133751-h4x670vblfr3d09e
2012-12-21 14:37:51 +01:00
Thibault Delavallée a873a7de80 [MERGE] ORM: fix result of queries using auto_join.
It is possible to have multiple results linked to a same 'left-side' query, such as having a task with several unread messages. In this case, the query using the joins gives back as many lines as unread messages, because of the joins in the query.
To avoid using distinct or 'where exist' constructs, the results of the query is filtered while keeping the original order.

bzr revid: tde@openerp.com-20121221131120-boll9klrxxna6zeq
2012-12-21 14:11:20 +01:00
Fabien Pinckaers 29e0f6ab02 [IMP] image=NULL by default for contacts
bzr revid: fp@tinyerp.com-20121221125509-nft529ct1rj2ui47
2012-12-21 13:55:09 +01:00
Thibault Delavallée 2b3c4737f1 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221124026-tlb272s892bhbubc
2012-12-21 13:40:26 +01:00
niv-openerp 692cea3039 Removed default image on partners, use default one in the kanban view if false
bzr revid: nicolas.vanhoren@openerp.com-20121221120631-2uugaiexqanwbi00
2012-12-21 13:06:31 +01:00
Olivier Dony f349a6cbd3 [FIX] pooler: when reloading registry, preserve the cron-active status of the previous registry
bzr revid: odo@openerp.com-20121221102910-wdrwom9k8sbhukmp
2012-12-21 11:29:10 +01:00
Olivier Dony 2839f96ffa [FIX] cli.server: cron startup was incorrectly disabled by rev 4672.3.1
Rev. 4672.3.1 = revid:vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs

bzr revid: odo@openerp.com-20121221102855-0ljpeoanyoxyfnjc
2012-12-21 11:28:55 +01:00
Thibault Delavallée 5b3fc4061b [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121221100320-ntn6zsdcqlvz52xn
2012-12-21 11:03:20 +01:00
Thibault Delavallée 919c0d1152 [REV] Reverted last improvement, because this was messing with the menus.
bzr revid: tde@openerp.com-20121221095934-ocbnwz2zvbdbmfug
2012-12-21 10:59:34 +01:00
dle@openerp.com 73cb6d5321 [FIX]Try to create already existing database throws warning instead of traceback.
bzr revid: dle@openerp.com-20121221090925-2i82d31dc061zngn
2012-12-21 10:09:25 +01:00
Christophe Matthieu db028dc09a [MERGE] tools mail: Return the initial variable if is false or if is not an instance of basestring. Remove encoding attribute in html tags.
bzr revid: chm@openerp.com-20121221083527-py3wr2syz5d8igv8
2012-12-21 09:35:27 +01:00
Launchpad Translations on behalf of openerp 231ecd2032 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121221043915-9f5zsgjkksp56zwn
bzr revid: launchpad_translations_on_behalf_of_openerp-20121221044239-5bv82e8q9e8s6bxw
bzr revid: launchpad_translations_on_behalf_of_openerp-20121221050452-f6jqbwzk9lovjkxm
2012-12-21 05:04:52 +00:00
Thibault Delavallée e2728306b3 [IMP] OROM: order_spec is overidden by self._order only if None (aka, not specified at all). False or void order_spec allows to avoid having any order_by clause. This is used now in needaction, to speedup the search.
bzr revid: tde@openerp.com-20121220205102-lx9ftf3l8qg0xqcu
2012-12-20 21:51:02 +01:00
Olivier Dony 0cd22d6d4b [IMP] res.partner: name_search nows searches email as well ; name_get now supports `show_email` context
+ various minor fixes to the way operators were
(mis)handled.

bzr revid: odo@openerp.com-20121220181604-61fxnjh35amdywwx
2012-12-20 19:16:04 +01:00
Antony Lesuisse 7b80e60135 [MERGE] auth password wizard
bzr revid: al@openerp.com-20121220171038-y0s6bhfhbp81pbmz
2012-12-20 18:10:38 +01:00
Arnaud Pineux 3aa5790fc1 [FIX] export translation-> replace many2many widget by many2many_tags
lp bug: https://launchpad.net/bugs/1092533 fixed

bzr revid: api@openerp.com-20121220161206-kf4jb6zxpqwz4c2u
2012-12-20 17:12:06 +01:00
Frédéric van der Essen faa67b8411 [FIX] tools: email regexp was too restrictive
bzr revid: fva@openerp.com-20121220160542-hiuu3drh4fa6j8v5
2012-12-20 17:05:42 +01:00
vta vta@openerp.com 1400636723 [FIX] Remove duplicated line
bzr revid: vta@openerp.com-20121220144609-ujzbkmn8u9mduu9g
2012-12-20 15:46:09 +01:00
Antony Lesuisse 7d5dbda805 [MERGE] apps by chs
bzr revid: al@openerp.com-20121220144322-ign0s0u0rbufhedi
2012-12-20 15:43:22 +01:00
vta vta@openerp.com cf82065375 [FIX] Data order
bzr revid: vta@openerp.com-20121220142344-jkq5fghsainnpw4b
2012-12-20 15:23:44 +01:00
Thibault Delavallée 36e5b6e88e [FIX] _search not uniquifies the results, because when using _auto_join we could have duplicates in the 'left part' of the result, i.e. a lead with several unread messages. This is done using a custom method instead of a set, because sets are unordered.
bzr revid: tde@openerp.com-20121220141842-or3bigz11qkb13qn
2012-12-20 15:18:42 +01:00
vta vta@openerp.com 79f46d675c [MERGE] Latest trunk
bzr revid: vta@openerp.com-20121220135003-4rcofmk0k66n3lsa
2012-12-20 14:50:03 +01:00
Antony Lesuisse e1329cc4e0 temp menu
bzr revid: al@openerp.com-20121220132652-01hgfi0q64zo02un
2012-12-20 14:26:52 +01:00
Olivier Dony e29f0565c9 [IMP] res.partner: form view: show phone numbers in embedded contacts kanban; search view: less confusing label `Partner` -> `Name` for default search criterion
bzr revid: odo@openerp.com-20121220131606-fiuo04pn1s66bmk1
2012-12-20 14:16:06 +01:00
vta vta@openerp.com 7bd5ab29b1 [ADD] Added change password button in user form view
bzr revid: vta@openerp.com-20121220125201-uczicf7orvef57sj
2012-12-20 13:52:01 +01:00
Thibault Delavallée 7e1c86da6e [IMP] Res company logo improvement: add an explicit 'add your logo' link.
Note that the branch name is completely unrelated to its content.

bzr revid: tde@openerp.com-20121220110617-ck3tpmtor38bd1tf
2012-12-20 12:06:17 +01:00
vta vta@openerp.com cede3b69aa [MERGE] Latest trunk
bzr revid: vta@openerp.com-20121220105704-fm4frn1na2ezm5f2
2012-12-20 11:57:04 +01:00
vta vta@openerp.com ed60ce60ab [FIX] Remove new_password field from user form view
bzr revid: vta@openerp.com-20121220103706-vid7jj1w008g81zb
2012-12-20 11:37:06 +01:00
dle@openerp.com 355dac7356 [FIX]Kanban view js not loaded when db created through command line
bzr revid: dle@openerp.com-20121220101511-679v8e6ijsbaxj0y
2012-12-20 11:15:11 +01:00
vta vta@openerp.com 23068e6afb [IMP] Make wizard work
bzr revid: vta@openerp.com-20121220092800-gtitseu418osspn2
2012-12-20 10:28:00 +01:00
Thibault Delavallée 7470ee38f9 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121220091858-ye1t25614ajfv4zl
2012-12-20 10:18:58 +01:00
Launchpad Translations on behalf of openerp 2a1ca8fba2 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121220044323-lda479xp4patic59
2012-12-20 04:43:23 +00:00
Antony Lesuisse 0ed151708a last fix
bzr revid: al@openerp.com-20121220023721-oy7y4czmf3tvmyzl
2012-12-20 03:37:21 +01:00
Antony Lesuisse 549c011893 [MERGE] turnk
bzr revid: al@openerp.com-20121220020708-ioiaoz58ncgw5wg7
2012-12-20 03:07:08 +01:00
Antony Lesuisse fb34208b68 apps fix destroy
bzr revid: al@openerp.com-20121219203058-4kb5urrb8rca8eti
2012-12-19 21:30:58 +01:00
Thibault Delavallée 044aaa4ca5 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121219201719-yy51k9tlqpa5v8kj
2012-12-19 21:17:19 +01:00
Antony Lesuisse 2370566ca0 move get_client in Apps
bzr revid: al@openerp.com-20121219172128-19u850blwf5cryex
2012-12-19 18:21:28 +01:00
vta vta@openerp.com 97bf527aa4 [ADD] Added change_password_wizard
bzr revid: vta@openerp.com-20121219154957-bf65kkqpikbwyua1
2012-12-19 16:49:57 +01:00
Antony Lesuisse 565853b732 [MERGE] trunk
bzr revid: al@openerp.com-20121219030106-i59u10tml3baqvun
bzr revid: al@openerp.com-20121219150107-8l92w2bi510yem45
2012-12-19 16:01:07 +01:00
Christophe Matthieu 1af40b9b78 [MERGE] from trunk
bzr revid: chm@openerp.com-20121219144055-up3kamlh08nbk1ju
2012-12-19 15:40:55 +01:00
Christophe Matthieu bf11573436 [IMP] tools mail: encoding : add test for removing encoding attribute
bzr revid: chm@openerp.com-20121219143912-os160iv0q0jeyhld
2012-12-19 15:39:12 +01:00
Fabien Pinckaers 777ed1e0dc [IMP] transparent background support for images in RML
bzr revid: fp@tinyerp.com-20121219132504-zvcs346g007sloua
2012-12-19 14:25:04 +01:00
Raphael Collet 95b41b40e9 [IMP] register_hook: improve a bit the code
bzr revid: rco@openerp.com-20121219132138-npf12n5l5ug6ujvx
2012-12-19 14:21:38 +01:00
Raphael Collet fd5dee2267 [MERGE] from trunk
bzr revid: rco@openerp.com-20121219130750-3ljqo3dyz05zww08
2012-12-19 14:07:50 +01:00
Christophe Matthieu 111e080e48 [IMP] tools mail: don't remove xml and doctype but remove encoding attribute
bzr revid: chm@openerp.com-20121219124038-05bf07960h05x0o8
2012-12-19 13:40:38 +01:00
Christophe Matthieu a31af13a3e [IMP] tools mail: add test message with xml and doctype tags don't crash
bzr revid: chm@openerp.com-20121219111853-zj16hdg7ujakksqt
2012-12-19 12:18:53 +01:00
Christophe Matthieu 125f80888e [FIX] tools mail: return the initial variable if is false or if is not an instance of basestring. remove xml and doctype tags.
bzr revid: chm@openerp.com-20121219103714-u52hfmqr5u508xa2
2012-12-19 11:37:14 +01:00
Thibault Delavallée 4936f0b683 [REM] partner: do not track user_id.
bzr revid: tde@openerp.com-20121219102539-lvlbl2vh828602ra
2012-12-19 11:25:39 +01:00
Olivier Dony 5ab624b11e [FIX] res.users: context_get cache was not cleared properly, due to braindead implementation of ormcache (skiparg is misused and off by 1 in clear_cache)
Discarding the cache completely is suboptimal but
makes the code simpler, and this is not performance
critical anyway. The cache is mostly useful during
module installation, which involves no call to clear_cache.

bzr revid: odo@openerp.com-20121219101315-1ccuwm6nvmov12zv
2012-12-19 11:13:15 +01:00
Raphael Collet b63518345e [FIX] web_services: fix incorrect query to set admin's password and lang
bzr revid: rco@openerp.com-20121219093816-atf0p0jtuwv6hd31
2012-12-19 10:38:16 +01:00
Thibault Delavallée f68d97a9a8 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121219093752-15iiid2w9myutw5h
2012-12-19 10:37:52 +01:00
Thibault Delavallée b5382291f7 [REV] Reverted some changes that should not be present in server.
bzr revid: tde@openerp.com-20121219093655-ts20h4rhu5whrdwm
2012-12-19 10:36:55 +01:00
Randhir Mayatra (OpenERP) 9dd9f47df8 [IMP] improve the string res_company and base_data_xml
bzr revid: rma@tinyerp.com-20121219093121-em1gzrsrbu83y40m
2012-12-19 15:01:21 +05:30
Launchpad Translations on behalf of openerp 196ca47c2e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121219051500-k2gb5w24tr2v2ux0
2012-12-19 05:15:00 +00:00
Antony Lesuisse c7d6df8fa3 [MERGE] module update_list signal wsgi handlers
bzr revid: al@openerp.com-20121219025908-hd8megr7fc6m4o7m
2012-12-19 03:59:08 +01:00
Antony Lesuisse edef11eaaf apps dont break protocol
bzr revid: al@openerp.com-20121219023226-gfceiyrmi50my80e
2012-12-19 03:32:26 +01:00
Antony Lesuisse 333fc6125f [IMP] ir_ui_view search
bzr revid: al@openerp.com-20121218235213-qoa9nxzr04firmp9
2012-12-19 00:52:13 +01:00
Fabien Pinckaers af9d805364 [REVERT] revert changes in the server
bzr revid: fp@tinyerp.com-20121218223959-jstszixwv464umqj
2012-12-18 23:39:59 +01:00
Fabien Pinckaers 97e23c83f5 [IMP] company form view improved for logo
bzr revid: fp@tinyerp.com-20121218174754-l5bxqao9xarr3ohk
2012-12-18 18:47:54 +01:00
Tejas Tank ffae4652de [FIX] All OpenERP RML Reports are enabled with transparent Image support.
bzr revid: tta@openerp.com-20121218115043-1yx5b2q7eqcf8xbx
2012-12-18 17:20:43 +05:30
Thibault Delavallée 42e7d90bf9 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121218104936-kdsojt5zn6fewk84
2012-12-18 11:49:36 +01:00
Raphael Collet d98b1b0ff5 [IMP] res_groups: add m2m field to see view restrictions with given group
bzr revid: rco@openerp.com-20121218101916-r97xja82556schfg
2012-12-18 11:19:16 +01:00
Raphael Collet 57acd22a00 [MERGE] trunk-import-openerp-thu (use strict naming convention when importing openerp stuff)
bzr revid: rco@openerp.com-20121218085750-h0f50vi54q65ml5c
2012-12-18 09:57:50 +01:00
Launchpad Translations on behalf of openerp b2bb3eafbd Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121218045907-df0xw1q7dgw696s1
bzr revid: launchpad_translations_on_behalf_of_openerp-20121218050221-ab50rd40d94gd9a0
bzr revid: launchpad_translations_on_behalf_of_openerp-20121218050832-5hvbj7p0bpsw6fp0
2012-12-18 05:08:32 +00:00
Antony Lesuisse 8f8a4b959c [REV] image dont generate smaller thumbnail if avoid_if_small, massive speedup on demo
bzr revid: al@openerp.com-20121218003356-ldw86lkvpfihhiqn
2012-12-18 01:33:56 +01:00
Antony Lesuisse 8dd4f11dcd [IMP] ir_model_data search and list view
bzr revid: al@openerp.com-20121217231645-jvus4p8ssp1g3vn8
2012-12-18 00:16:45 +01:00
Olivier Dony 9bc690bf17 [IMP] res.users: enable cache on context_get, used by the _() translation function
When _() fails to find a context lang it looks
up the user language by calling context_get().
During module installation this may happen
thousands of times, and drastically slow down
the installation. Caching context_get calls
is an effective way to work around this,
until we find a better solution.

bzr revid: odo@openerp.com-20121217214700-6r7ju8iiaeowgj8i
2012-12-17 22:47:00 +01:00
Olivier Dony 9f77d2e2f4 [FIX] orm,registry: properly check m2o FKs during model update + fix some models `auto_init`ed multiple times
The case where no constraint existed at all was not working,
and after fixing it, the ORM started to re-create the same
constraints multiple times for some modules. This was for
models that are split within a module (such as res.users in
base, which is made of several small classes): all the
partial models were going through _auto_init instead
of only the final one - doing useless extra work.
      
Unfortunately establishing the FK happens before the
XML data files are loaded, so a number of FK and
NOT NULL constraints failed to apply due to missing
tables/records. base.sql had to be extended a bit
to cover these cases in a minimalist fashion

bzr revid: odo@openerp.com-20121217214645-av9n003yzterhujw
2012-12-17 22:46:45 +01:00
Thibault Delavallée ef4bc9b9c6 [IMP] tracked: models now have a _track attribute, telling the subtype to use for logging tracked fields. tracked attribute on columns become _track_visibility, telling if a field must always be logged or only when changed (to keep context value in logging message).
bzr revid: tde@openerp.com-20121217191059-g5jdm0yjee1gttta
2012-12-17 20:10:59 +01:00
Christophe Simonis 0c7f17c0ac merge upstream
bzr revid: chs@openerp.com-20121217172614-3z1pstu5th26wuuc
2012-12-17 18:26:14 +01:00
Olivier Dony f0c826cec6 [IMP] loading.py: lint cleanup - unused code
bzr revid: odo@openerp.com-20121217151626-1pbzf7mxh9inx1y9
2012-12-17 16:16:26 +01:00
Cecile Tonglet 8d1b7ce632 [FIX] Removed too much in openerp.tools.misc: html2text
bzr revid: cto@openerp.com-20121217150241-smbswmdmumva29ft
2012-12-17 16:02:41 +01:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Cecile Tonglet 5f0070dcb6 [FIX] Remove unused imports and fix some imports that doesn't use the new namespace
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Raphael Collet 39fe69babe [FIX] expression: avoid delitem on a tuple
bzr revid: rco@openerp.com-20121217134559-cjc0b4ncs1drupn7
2012-12-17 14:45:59 +01:00
Raphael Collet fe48c4eaa9 [FIX] res_country_data: fix US postal address format
bzr revid: rco@openerp.com-20121217130249-w2wanhy1b7wsgbra
2012-12-17 14:02:49 +01:00
Cecile Tonglet 5179507e22 [MERGE] Branch updated with trunk
bzr revid: cto@openerp.com-20121217125902-idtlh4ztyah17bdn
2012-12-17 13:59:02 +01:00
Raphael Collet 3040114651 [MERGE] trunk-style-improvements-xmo (Python stylistic improvement)
bzr revid: rco@openerp.com-20121217110150-4ijt04ic17miktq7
2012-12-17 12:01:50 +01:00
Raphael Collet 2679a49af4 [FIX] orm: replace incorrect usage of 'in' by '=='
bzr revid: rco@openerp.com-20121217104721-miqmtw2zm7r7lxrs
2012-12-17 11:47:21 +01:00
Raphael Collet eecc7de437 [MERGE] trunk-acl-thu (check read/write access restrictions on fields with a groups attribute)
bzr revid: rco@openerp.com-20121217101528-nt5hsjvvodaap57m
2012-12-17 11:15:28 +01:00
Thibault Delavallée 24f0244e9a [MERGE] Merged lp:~openerp-dev/openobject-server/trunk-tracked-fields-chs, with some selective choices.
bzr revid: tde@openerp.com-20121217101057-iypmaa7gtrlda19g
2012-12-17 11:10:57 +01:00
Launchpad Translations on behalf of openerp fefe50549d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121217044438-1j3k23g7l6ypkwoe
2012-12-17 04:44:38 +00:00
Antony Lesuisse fde832955a add file_size
bzr revid: al@openerp.com-20121217011601-utt2a0zweaq2c0bt
2012-12-17 02:16:01 +01:00
Antony Lesuisse 9568552636 revert test change will be moved to an other branch
bzr revid: al@openerp.com-20121216193932-foluon7b5bqqvrib
2012-12-16 20:39:32 +01:00
Antony Lesuisse 70aa2c995a filestore testcase and fix bugs
bzr revid: al@openerp.com-20121216190317-xoz0jij2cfk0c2zk
2012-12-16 20:03:17 +01:00
Antony Lesuisse 2569587c90 Simplify openerp testing, deprecated redondant test declaration, we feed all
tests.* modules to unittest2.TestLoader.loadTestsFromModule(module)

bzr revid: al@openerp.com-20121216173856-euntlfi80uzutkp0
2012-12-16 18:38:56 +01:00
Fabien Pinckaers 4cf0ce7473 [IMP] company form view
bzr revid: fp@tinyerp.com-20121216161013-08ymsrtnk17z0lxd
2012-12-16 17:10:13 +01:00
Antony Lesuisse 807c949030 minor fixes
bzr revid: al@openerp.com-20121216122555-frwadjd247zidw7o
2012-12-16 13:25:55 +01:00
Antony Lesuisse b625a3239d [MERGE] trunk
bzr revid: al@openerp.com-20121216121509-rowl05966ej8su0q
2012-12-16 13:15:09 +01:00
Launchpad Translations on behalf of openerp 04a1fe3553 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121216044514-h60p9z11ckzaiug9
2012-12-16 04:45:14 +00:00
Antony Lesuisse 14ad37779c cleanups
bzr revid: al@openerp.com-20121216015214-kfo6zlarh4gdccrx
2012-12-16 02:52:14 +01:00
Antony Lesuisse f6fe592152 [MERGE] trunk
bzr revid: al@openerp.com-20121216014404-oonymtva4uww7bwk
2012-12-16 02:44:04 +01:00
Fabien Pinckaers 50be9a8903 [IMP] logo of company: False or OpenERP logo if demo data
bzr revid: fp@tinyerp.com-20121215213219-j7vhocg70mi9jjw6
2012-12-15 22:32:19 +01:00
Antony Lesuisse 5fc754b5d3 [MERGE] manually merge customizable web logo, by chs
bzr revid: al@openerp.com-20121215192606-9p66tpo1f4344e20
2012-12-15 20:26:06 +01:00
Antony Lesuisse 0a35f78974 [MERGE] remove res.partner.address by chs
it also removes an ugly hack in the orm.

bzr revid: al@openerp.com-20121215182836-y15v2mwgdg9wyubi
2012-12-15 19:28:36 +01:00
Fabien Pinckaers b8008dc7e4 [IMP] better thumbnail generation
bzr revid: fp@tinyerp.com-20121215104647-p4xnj04v5hxdz5wb
2012-12-15 11:46:47 +01:00
Launchpad Translations on behalf of openerp 809c92fdef Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121214053618-1gz9xun2cb10afle
bzr revid: launchpad_translations_on_behalf_of_openerp-20121215050358-th0pl9jeams3pwkr
bzr revid: launchpad_translations_on_behalf_of_openerp-20121215050620-y27swfcuh62k8u32
bzr revid: launchpad_translations_on_behalf_of_openerp-20121215051723-6cnx1julk94gkm66
2012-12-15 05:17:23 +00:00
Vo Minh Thu 91ee5eae52 [IMP] orm/acl: proper message instead of `TODO`.
bzr revid: vmt@openerp.com-20121214155313-76lncslpx7ugrp6x
2012-12-14 16:53:13 +01:00
Vo Minh Thu 08a082f63f [FIX] registry: Set the fields_by_model attribute in __init__(), use None to flag non-existing fields-per-model cache.
bzr revid: vmt@openerp.com-20121214141114-em9r66e3sfy21t2r
2012-12-14 15:11:14 +01:00
Xavier Morel d02fc09bb9 [IMP] more augmented assignments
bzr revid: xmo@openerp.com-20121214134455-c1o7ehlot6vdwioe
2012-12-14 14:44:55 +01:00
Xavier Morel 5155f30303 [REM] unused local variables
bzr revid: xmo@openerp.com-20121214132533-aafgbov19ckb9ksp
2012-12-14 14:25:33 +01:00
Xavier Morel 3ee178ab2c [FIX] unnecessary backslashes
bzr revid: xmo@openerp.com-20121214132113-1ofmm5x0ua3l2q5d
2012-12-14 14:21:13 +01:00
Xavier Morel 0051f993c0 [FIX] single-quoted docstrings should use double quotes
removed a completely useless docstring

bzr revid: xmo@openerp.com-20121214132007-he0yvpmgjw4rwykb
2012-12-14 14:20:07 +01:00
Xavier Morel 5d3d3868f6 [IMP] use augmented assignments
bzr revid: xmo@openerp.com-20121214131924-bpl48ht21ic4g34b
2012-12-14 14:19:24 +01:00
Xavier Morel 91f441d0cd [FIX] mutable default argument values
bzr revid: xmo@openerp.com-20121214131720-jll2i2y0ph7aexox
2012-12-14 14:17:20 +01:00
Xavier Morel 8d238252cc [REM] unused and broken base.module.scan
bzr revid: xmo@openerp.com-20121214131310-k9yuwqoau6a8e89u
2012-12-14 14:13:10 +01:00
Xavier Morel d0a377cb1c [FIX] incorrect docstrings or docstring param names not matching actual param names
bzr revid: xmo@openerp.com-20121214130758-a2wp963w4djmb02k
2012-12-14 14:07:58 +01:00
Xavier Morel 1954c7ae2b [FIX] unresolved reference: 'model' not available inside test body if generator used
bzr revid: xmo@openerp.com-20121214130507-qc1fqzbdttb2a0n2
2012-12-14 14:05:07 +01:00
Xavier Morel fb6f4bcfbd [REM] unreachable code
bzr revid: xmo@openerp.com-20121214124606-nccvun2sf12gu7c7
2012-12-14 13:46:06 +01:00
Xavier Morel b6ece5d65f [REM] trailing semicolons
bzr revid: xmo@openerp.com-20121214124310-wfdkhmcwxnyqu30m
2012-12-14 13:43:10 +01:00
Xavier Morel 90a687ab7a [FIX] misplaced docstrings
bzr revid: xmo@openerp.com-20121214124243-kvg2cg00k0a4518p
2012-12-14 13:42:43 +01:00
Xavier Morel a34a167037 [FIX] crazy direct calls to dunder methods
bzr revid: xmo@openerp.com-20121214124111-xk1wq0xh0gzgx8oh
2012-12-14 13:41:11 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Xavier Morel e83d615830 [IMP] literalify list creation
bzr revid: xmo@openerp.com-20121214122605-w1danvqxmqm12800
2012-12-14 13:26:05 +01:00
Xavier Morel a5cb8460c6 [FIX] __init__ can't return values
bzr revid: xmo@openerp.com-20121214122525-bd5207viiz4vqi8x
2012-12-14 13:25:25 +01:00
Xavier Morel affda60c8e [FIX] spaceify tabs
bzr revid: xmo@openerp.com-20121214122423-j8hla3cf3uir7ypt
2012-12-14 13:24:23 +01:00
Xavier Morel 2270f8e8dd [IMP] merge extraneous setitem into literal dict creation
bzr revid: xmo@openerp.com-20121214122223-91elxxp0m6ska8ua
2012-12-14 13:22:23 +01:00
Xavier Morel 80d97e8d17 [REM] duplicate dict keys
bzr revid: xmo@openerp.com-20121214121741-lhkqewfw76riqy45
2012-12-14 13:17:41 +01:00
Xavier Morel 83c102714f [REM] access to deprecated APIs for unsupported Python versions
bzr revid: xmo@openerp.com-20121214121711-d1r6nx82f0mpwgwy
2012-12-14 13:17:11 +01:00
Xavier Morel 4cb3685f70 [IMP] compare to None by identity
bzr revid: xmo@openerp.com-20121214121638-6k5h0ztg94i4f5t6
2012-12-14 13:16:38 +01:00
Xavier Morel 576571bae2 [IMP] simplify to chained comparison
bzr revid: xmo@openerp.com-20121214121604-anypg1nudbk0bh9y
2012-12-14 13:16:04 +01:00
Vo Minh Thu 3667e3c619 [IMP] module loading: removed unnecessary indentation, added comments.
bzr revid: vmt@openerp.com-20121214105820-9nlgzu9pm7cvh1pz
2012-12-14 11:58:20 +01:00
Vidhin Mehta (OpenERP) 3cdad18c64 [FIX]not check value in dict.
bzr revid: vme@tinyerp.com-20121214071823-1ddtkev3jj2l3cq3
2012-12-14 12:48:23 +05:30
Olivier Dony 1565e8c708 [IMP] ir.ui.menu: deleting a menu should orphan its children w/o corrupting the `parent_store` struct: test + fix
ir.ui.menu was recently changed to use _parent_store,
which precludes using ondelete=set null for the parent_id
column. We nevertheless need to be certain that menus
can always be deleted but *never* cascade-deleted,
due the possible presence of user-created menus.
Overriding menu.unlink() is therefore necessary,
and care must be taken to bypass the default menu
visibility (using the `ir.ui.menu.full_list` context
flag while doing so)

bzr revid: odo@openerp.com-20121213145821-u2ipdvffu00rsgdg
2012-12-13 15:58:21 +01:00
Olivier Dony 90c0eea54a [IMP] ir.ui.menu: enable `parent_store` to allow using the `child_of` operator efficiently when loading the menu hierarchy
The menu loading logic in openerp-web was adapted to use
`child_of`.

bzr revid: odo@openerp.com-20121212210451-40ew3lp5wgps64gy
2012-12-12 22:04:51 +01:00
Olivier Dony e660b70ecb [IMP] orm: do not warn about missing ondelete cascade rule if ondelete is restrict - that's safe as well
bzr revid: odo@openerp.com-20121212210247-emrz5rf9ewcwdggu
2012-12-12 22:02:47 +01:00
Olivier Dony 9aa0701836 [FIX] res.users: whitelist recently added `tz_offset` field so that users can read it on their own record (even the anonymous user)
bzr revid: odo@openerp.com-20121212210137-u0vwkth5wt0au6qc
2012-12-12 22:01:37 +01:00
Olivier Dony e493303e18 [REVERT] Undo r.4617, introduced a bug in menu hierarchy retrieval
Browsing the menu data as super-user is not correct
because when we load the children menu the ORM
recursively calls menu.search(), this time as
admin, hence the groups of the admin are applied
or submenus, instead of the groups of the user.
The patch was also un-necessary, so there is no
reason to keep it.

r.4617 = chs@openerp.com-20121129172145-0ionmbffc72hwxoa

bzr revid: odo@openerp.com-20121212210027-i5yn1uyzmfho0jh0
2012-12-12 22:00:27 +01:00
Vo Minh Thu eb0fcc35d2 [FIX] check_field_access_rights: ignore nonexisting fields
It seems name_alias is requested but does not exist.

bzr revid: vmt@openerp.com-20121212151509-22494edob4e3fqaf
2012-12-12 16:15:09 +01:00
Vo Minh Thu 1a4fd71880 [FIX] test_fields: _all_columns must be modified similarly to _columns.
(Because of the newly added method check_field_access_rights().)

bzr revid: vmt@openerp.com-20121212134755-ykfdykqepwzti5uf
2012-12-12 14:47:55 +01:00
Vo Minh Thu 9d2afcae3f [IMP] orm: check groups-based access rights on model fields in read() and write().
The commented-out tests present in test_acl.py now pass.
Other tests now fail :-(.

bzr revid: vmt@openerp.com-20121212113647-11y3buulifg6tyhj
2012-12-12 12:36:47 +01:00
Quentin (OpenERP) c8d9c5e73b [MERGE] branch removing a typo in a view
bzr revid: qdp-launchpad@openerp.com-20121212105146-5xfqsqaqu086t7wh
2012-12-12 11:51:46 +01:00
Launchpad Translations on behalf of openerp 2e7f68e09f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121212043903-maiyd94p4ifgdqew
bzr revid: launchpad_translations_on_behalf_of_openerp-20121212044145-k216g0bcavdlf2o3
bzr revid: launchpad_translations_on_behalf_of_openerp-20121212045414-tgg69aaw4dz72b0p
2012-12-12 04:54:14 +00:00
Antony Lesuisse 1db5e67ed4 [MERGE] autoinstall at least one dependency must be to install by rco
bzr revid: al@openerp.com-20121211185310-jq6cci7740n54b4a
2012-12-11 19:53:10 +01:00
Christophe Simonis ea542472c9 [FIX] res.partner: column "address" does not exists anymore.
bzr revid: chs@openerp.com-20121211184624-b7v3ffn0jsoa1jbq
2012-12-11 19:46:24 +01:00
Christophe Simonis 74b431298e [FIX] remove res.partner.address model
bzr revid: chs@openerp.com-20121211182934-up3sxi0pcw20qrit
2012-12-11 19:29:34 +01:00
Vo Minh Thu 559e2ff23c [FIX] demo: add the group_partner_manager group to the demo user (needed to pass the test_acl sanity check).
bzr revid: vmt@openerp.com-20121211144903-737sc04h41hmzaro
2012-12-11 15:49:03 +01:00
Raphael Collet fbc37241cc [IMP] modify the condition to auto-install a module: at least one dependency must be 'to install'
bzr revid: rco@openerp.com-20121211144010-3bbszb3ajxr3doup
2012-12-11 15:40:10 +01:00
Vo Minh Thu 055f46f290 [IMP] tests: add test_acl to the openerp.tests suite.
bzr revid: vmt@openerp.com-20121211122844-6y060gex2lbq76hp
2012-12-11 13:28:44 +01:00
Vo Minh Thu f668a123d9 [IMP] Reduce considerably the loading time of a new registry.
Loading time was mesured on the loading of a second database (identical to the
first one), i.e. by passing -d xx,yy on the command line, using cProfile. The
databases were installed with sale, mrp, and the crm.

The cProfile code is commited as part of this patch and should be removed (or
maybe guarded by some command-line flag) (just as the commenting-out of the
cron startup).

The patch was also applied on top of the trunk-simple-table-stats-vmt branch
which provides SQL queries counters.

Results indicate that the number of SQL queries are reduced from about 2100 to
27. Loading time is reduced from 1.3s to 0.26s (i.e. improved by 5).

Changes:

All calls to ir_model_fields to fetch manual (custom) fields are done in a
single call (prior to instanciate all models).

Checks for empty module descriptions are not done unless we are in init or
update mode. (The behavior was the opposite, which was probably a mistake).

Some calls to ir_translation, passing en_US because there was no lang in the
context, are not done anymore.

The improved time is also a result of a change in the decimal_precision module
where precision_get fetches all digits/applications instead of one at a time
(and thus implements its own caching instead of relying on
openerp.tools.ormache).

bzr revid: vmt@openerp.com-20121211105954-lwgs5js7yw3tzghs
2012-12-11 11:59:54 +01:00
Christophe Simonis 88eb634fd5 [IMP] tools.image: size can have width or height optional
bzr revid: chs@openerp.com-20121211100631-th6jjwnc7b1u957v
2012-12-11 11:06:31 +01:00
Sanjay Gohel (Open ERP) 223d8f984b [MERGE]merge with trunk
bzr revid: sgo@tinyerp.com-20121211063706-wefc8qt6zu24vvnl
2012-12-11 12:07:06 +05:30
Launchpad Translations on behalf of openerp 6ae5cc7b8d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121211044616-c47ciibjkh660n1z
2012-12-11 04:46:16 +00:00
Antony Lesuisse c4fcf264c0 [IMP] workers request count on exit
bzr revid: al@openerp.com-20121211012436-gnr3vxhoye1xf0dh
2012-12-11 02:24:36 +01:00
Thibault Delavallée bd0bae6625 [MERGE] Perform auto-join and mailboxes+needaction speed udpate. Server-side branch, holding a refactoring of expression.parse and the addition of _auto_join feature on relational fields.
expression.parse: refactored the main parsing loop, now using source and result stacks. Leaf elements are encapsulated into a specific object, allowing to delegate the join condition formation, working table management and table aliases generation to them. The parsing is now a simple loop taking a leaf, doing one action on it, and putting the result back to be analyzed or in the results. This allows to avoid having nested loops and uncontrolled results.

Other modifications :
- updated the generation of order_by to take into account the table now referred using aliases
- updated Query object to use the aliases
- fixed an outstanding bug about _order, now handled as order. This means that putting direct SQL into _order of models will not be supported anymore, because of the computing complexity now that we have multiple joins in queries. The branch holds the patch from Paulius Sladkevičius
- updated and added tests
- added a basic documentation for the freature

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

bzr revid: tde@openerp.com-20121210154652-6sab9usb38i7adlh
2012-12-10 16:46:52 +01:00
Vo Minh Thu 509a084e79 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Christophe Simonis 236df95b22 merge upstream
bzr revid: chs@openerp.com-20121210132406-9ro3amw6s6pzeez4
2012-12-10 14:24:06 +01:00
Thibault Delavallée 733cb0d96a [MERGE] Sync with trunk, because conflicting with ir_ui_menu lastly udpated.
bzr revid: tde@openerp.com-20121210132204-39p7chispvogelux
2012-12-10 14:22:04 +01:00
Christophe Simonis 507c02aaa2 [REV] close_socket is back in netsvc.py
bzr revid: chs@openerp.com-20121210132133-m1z2hb72y1r1wsei
2012-12-10 14:21:33 +01:00
Sanjay Gohel (Open ERP) 8de8537c1e [IMP]add tracked attribute on fields
bzr revid: sgo@tinyerp.com-20121210131100-v88knep1or2s5o03
2012-12-10 18:41:00 +05:30
Thibault Delavallée 3446b35874 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121210125418-l8ntl5o5mnb2dq3h
2012-12-10 13:54:18 +01:00
Anand Patel (OpenERP) b3ab5a63ae [MERGE] Merged with latest trunk
bzr revid: pan@tinyerp.com-20121210084122-n7qyuh8hm6jvgmd9
2012-12-10 14:11:22 +05:30
Thibault Delavallée f0abd6f49e [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121210083805-1t45n6xxmptpo28o
2012-12-10 09:38:05 +01:00
Nimesh (Open ERP) 480e116b40 [MERGE] with trunk
bzr revid: nco@tinyerp.com-20121210070332-6h5qnlcf4whjv7p5
2012-12-10 12:33:32 +05:30
Sanjay Gohel (Open ERP) ee756acff1 [MERGE]with trunk
bzr revid: sgo@tinyerp.com-20121210050740-m2tofymj14oqjohl
2012-12-10 10:37:40 +05:30
Launchpad Translations on behalf of openerp 798e44b1e4 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20121210043632-9tdic74gwliyynmq
2012-12-10 04:36:32 +00:00
Antony Lesuisse 96f632224f [IMP] workers document defaults
bzr revid: al@openerp.com-20121209225349-k0f9jpg7n0nxc70t
2012-12-09 23:53:49 +01:00
Antony Lesuisse 0801f22e04 [IMP] workers setproctitle if available
bzr revid: al@openerp.com-20121209215336-rvmy0dejfpmy1awi
2012-12-09 22:53:36 +01:00
Antony Lesuisse cf31a12d94 [IMP] workers cron dont keep cursors
need for saas and demo

bzr revid: al@openerp.com-20121209212242-s3a91vxg8bixqls7
2012-12-09 22:22:42 +01:00
Antony Lesuisse 97ab217893 [IMP] workers cron logging and chorus
bzr revid: al@openerp.com-20121209204544-7w98xboxh6uytz43
2012-12-09 21:45:44 +01:00
Antony Lesuisse 099ae0f70c [IMP] workers better logging
bzr revid: al@openerp.com-20121209203134-sobl1m3q53bjne2i
2012-12-09 21:31:34 +01:00
Antony Lesuisse a4fcf06301 [FIX] temporary fix workers cron for missing openerp.addons.base
bzr revid: al@openerp.com-20121209200018-bvzdy7nhkyo6kaun
2012-12-09 21:00:18 +01:00
Antony Lesuisse 2f1f17ead9 [IMP] fields warning display args to locate them
bzr revid: al@openerp.com-20121209193952-ukk0aie3d8fg18q2
2012-12-09 20:39:52 +01:00
Antony Lesuisse 17ec9a3422 [FIX] workers graceful shutdown
bzr revid: al@openerp.com-20121209193022-r4h1ksmqrk2cfnds
2012-12-09 20:30:22 +01:00
Antony Lesuisse ae45df93a4 misc
bzr revid: al@openerp.com-20121209190543-83hmvyfcu1af7wiv
2012-12-09 20:05:43 +01:00
Antony Lesuisse c41d63f300 netrpc flip default, backward compatible for a few days
bzr revid: al@openerp.com-20121209185651-7i4vlvul5b3jgnmy
2012-12-09 19:56:51 +01:00
Antony Lesuisse 0cfa89dff7 netrpc flip default
bzr revid: al@openerp.com-20121209185442-1kgtc0hvds4fpng0
2012-12-09 19:54:42 +01:00
Antony Lesuisse 3d3eac7c50 service cleanups, more wizard removal
bzr revid: al@openerp.com-20121209184632-hp9b9fbbn9g4h2lw
2012-12-09 19:46:32 +01:00