Commit Graph

1203 Commits

Author SHA1 Message Date
Olivier Dony b971680a53 [MERGE] multi-process/multi-threaded ir.cron implementation
bzr revid: odo@openerp.com-20110929002157-31pgkmqc96by15ak
2011-09-29 02:21:57 +02:00
Olivier Dony 5252e02cc5 [IMP] ir.cron.write/unlink: try NOWAIT lock to avoid blocking user operations during cron executions
bzr revid: odo@openerp.com-20110929001858-3v5ffsjela8y71qc
2011-09-29 02:18:58 +02:00
Olivier Dony cc5d73a529 [FIX] cron: cleanup wakeup pointers after processing them
bzr revid: odo@openerp.com-20110928235409-mzsuqxzmvc30sg0n
2011-09-29 01:54:09 +02:00
Olivier Dony f5fdb9f494 [FIX] cron/registry: typo
bzr revid: odo@openerp.com-20110928235048-ssfqeu7ug35isyfk
2011-09-29 01:50:48 +02:00
Olivier Dony dea1026c60 [IMP] cron: warning about max DB setting that may conflict with cron (thanks to N.Bessi for the idea)
bzr revid: odo@openerp.com-20110928231522-ah3xop8w1z18eg8n
2011-09-29 01:15:22 +02:00
Olivier Dony a9a50c2cc8 [FIX] ir_cron: compare timestamps always as UTC (as of v6.1)
bzr revid: odo@openerp.com-20110928224611-51eqnelo7mqomnwh
2011-09-29 00:46:11 +02:00
Olivier Dony f2b9b58fd3 [IMP] cron: misc renaming and minor changes to improve reviewability ;-)
bzr revid: odo@openerp.com-20110928224429-up0k4ts3cdks1u2s
2011-09-29 00:44:29 +02:00
Antony Lesuisse c71979e6ae [MERGE] /openerp/6.1 xmlrpc compliant
bzr revid: al@openerp.com-20110928220539-5q8eujk1l0q43d4x
2011-09-29 00:05:39 +02:00
Olivier Dony e7601e68cb [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110928211326-0e51q7zlw4h2528z
2011-09-28 23:13:26 +02:00
Vo Minh Thu 538cc0e92f [FIX] ir_sequence: typo in read().
bzr revid: vmt@openerp.com-20110928141520-9yx9sogoetizb9nn
2011-09-28 16:15:20 +02:00
Vo Minh Thu 6929d9f3c8 [FIX] ir_sequence: any merge proposal should touch as many .po files as possible.
bzr revid: vmt@openerp.com-20110928133101-z1baqrqw7yb2u73c
2011-09-28 15:31:01 +02:00
Vo Minh Thu 42fe3d4ff5 [IMP] ir_sequence: added the new "implementation" field in the views.
bzr revid: vmt@openerp.com-20110928132744-lb8m15yzg7kc3e56
2011-09-28 15:27:44 +02:00
Vo Minh Thu 7ac3c90774 [FIX] ir_sequence: check access right on get_id(), unlink returns True.
bzr revid: vmt@openerp.com-20110928130548-ldg97pjo5zex0qab
2011-09-28 15:05:48 +02:00
Vo Minh Thu b4661b5b09 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110928130246-stflg3oza3nqq05i
2011-09-28 15:02:46 +02:00
Vo Minh Thu ebd8ca5df5 [IMP] orm: expose ir.model.access check shortcuts.
bzr revid: vmt@openerp.com-20110928130107-5y5di6nx0al3q8mh
2011-09-28 15:01:07 +02:00
Vo Minh Thu eeaa2a7f80 [FIX] ir_sequence: do the FOR UPDATE NO WAIT only in the No-gap sequence.
bzr revid: vmt@openerp.com-20110928114229-1g6r5et5frj26wam
2011-09-28 13:42:29 +02:00
Vo Minh Thu f2c5556b68 [FIX] ir_sequence: forgot id argument in _create_sequence().
bzr revid: vmt@openerp.com-20110928103009-17rw1af5ebauu3f5
2011-09-28 12:30:09 +02:00
Antony Lesuisse 4ad8bd6fb9 [IMP] use generic value for base_data company
bzr revid: al@openerp.com-20110928101227-199mwqzmsta01am3
2011-09-28 12:12:27 +02:00
Vo Minh Thu 5f4ebc7b1c [IMP] ir_sequence: add support for PostgreSQL sequence.
This is partly inspired by openlabs' Sequence Postgres module.
Untested yet.

bzr revid: vmt@openerp.com-20110928091309-098red2biba5uq73
2011-09-28 11:13:09 +02:00
Launchpad Translations on behalf of openerp d159b7b182 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110928051941-ui5tnmsl3fgkdugk
2011-09-28 05:19:41 +00:00
Olivier Dony 762637518b [MERGE] osv_memory removed, merged into database-backed Model/TransientModel
bzr revid: odo@openerp.com-20110927213712-9aa0x0aqoh13f6ga
2011-09-27 23:37:12 +02:00
Vo Minh Thu 0a8fe1e3b5 [IMP] ir_sequence: draining the swamp while being up to my neck in alligators.
bzr revid: vmt@openerp.com-20110927213612-y8qzz2cma1cmfo69
2011-09-27 23:36:12 +02:00
Vo Minh Thu 6d6f22015a [IMP] ir_sequence: whitespace and other hair cut changes.
bzr revid: vmt@openerp.com-20110927183830-9mkkphmpzquyqsjn
2011-09-27 20:38:30 +02:00
Olivier Dony 209390d627 [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110927165133-uwl7px6bxl6eu7us
2011-09-27 18:51:33 +02:00
Fabien Pinckaers ae0649df5f merge
bzr revid: fp@tinyerp.com-20110927140526-ld9eost69hspy69i
2011-09-27 16:05:26 +02:00
Fabien Pinckaers c3afdca2ab [IMP] generate XML id when exporting an ID that does not exists
bzr revid: fp@tinyerp.com-20110927140450-2b78h9dsb1fh7t11
2011-09-27 16:04:50 +02:00
Vo Minh Thu 610eef07cd [IMP] xmlrpc: reverted the common/db URI fusion, we prefer to keep the separate URI.
bzr revid: vmt@openerp.com-20110927133522-5qcngogolyw88vo7
2011-09-27 15:35:22 +02:00
Naresh (OpenERP) 7101204a22 [FIX/IMP]:stored function override were not removed
lp bug: https://launchpad.net/bugs/789576 fixed

bzr revid: nch@tinyerp.com-20110927105821-3rmydltdyv4gv830
2011-09-27 16:28:21 +05:30
Vo Minh Thu 08cfadaff0 [IMP] xmlrpc: somewhat streamlined the exception types/
exception handling code.
OpenERPDispatcherException which was simply wrapping an exception together with
an exc_info is removed.

bzr revid: vmt@openerp.com-20110927102246-87ibftawukc2d8lc
2011-09-27 12:22:46 +02:00
Vo Minh Thu 8b2f8e1c88 [FIX] res_user: def read(..., fields, ...): fields must be optional.
bzr revid: vmt@openerp.com-20110927095345-3xj7e8fw87vcxpqy
2011-09-27 11:53:45 +02:00
Vo Minh Thu e8dc0edbaa [IMP] xmlrpc: use some commented constant symobls instead of raw numbers.
bzr revid: vmt@openerp.com-20110927081902-4zu2mri9zx8j27tb
2011-09-27 10:19:02 +02:00
Launchpad Translations on behalf of openerp de2cc0f25c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110927044723-1yi0gplgo6mhwm97
2011-09-27 04:47:23 +00:00
Olivier Dony ad4a216e7d [IMP] fields.m2m: support implicit generation of m2m SQL names
This allows for transparent inheritance of m2m columns via _inherit,
as long as the m2m relationship table is not explicitly named in 
the declaration.

bzr revid: odo@openerp.com-20110926171451-n2jg8pbl5mq715vk
2011-09-26 19:14:51 +02:00
Vo Minh Thu 157580b8e8 [IMP] xmlrpc: use proper exception type to map to xmlrpc error codes.
bzr revid: vmt@openerp.com-20110926151403-fhx4ph22tua2s3st
2011-09-26 17:14:03 +02:00
Vo Minh Thu bbd10d96c0 [IMP] exceptions: replace ExceptionNoTb with AccessDenied.
bzr revid: vmt@openerp.com-20110926125358-8yy4tvnemfna72u7
2011-09-26 14:53:58 +02:00
Olivier Dony f81fe2dc6e [IMP] orm: enforce proper m2o ondelete rules between TransientModels and Models
bzr revid: odo@openerp.com-20110926111226-fu834vqwm4gbxk8l
2011-09-26 13:12:26 +02:00
Olivier Dony 6462c85f6c [IMP] start unifying the SUPERUSER_ID constant
bzr revid: odo@openerp.com-20110926090156-2smbh0ypzitauhmt
2011-09-26 11:01:56 +02:00
Xavier Morel 0de487e029 [IMP] doc for import_data
bzr revid: xmo@openerp.com-20110926075115-bsdyjzk5nhp0cbnh
2011-09-26 09:51:15 +02:00
Antony Lesuisse d1e40a55af [IMP] directory cleanups, moved historical cruft into history
bzr revid: al@openerp.com-20110926005444-a7vqjb05vep7xbvj
2011-09-26 02:54:44 +02:00
Vo Minh Thu f16e2ef10a [IMP] websrv_lib: removed top-level http handlers.
We have to keep for now the sub-handler code because webdav uses it.

bzr revid: vmt@openerp.com-20110925170827-x2xvdz5pzupnu28k
2011-09-25 19:08:27 +02:00
Vo Minh Thu b7a0c1061e [IMP] xmlrpc: correctly use int fault code instead of string.
bzr revid: vmt@openerp.com-20110925162925-7d0p807u6h087whk
2011-09-25 18:29:25 +02:00
Vo Minh Thu a7a826b2df [IMP] netsvc: removed unused auth param.
The auth param is an auth proxy/provider. The idea is that an auth proxy
is associated to some HTTP request handler. The handler can then use it
when necessary, depending on the accessed resource.
As of now, it is only used by the webdav module. But really, the caldav
module accesses the proxy directly on the handler.
Currently in web_services, authentication is simply done via
security.check().

bzr revid: vmt@openerp.com-20110925152318-i3jvimumm51e2lu4
2011-09-25 17:23:18 +02:00
Vo Minh Thu a254a13dc3 [IMP] xmlrpc: versioned API.
bzr revid: vmt@openerp.com-20110925150923-au0u0nply8lriise
2011-09-25 17:09:23 +02:00
Vo Minh Thu 007da7d0c7 [FIX] openerp.service: call wsgi.stop_server upon server shutdown.
bzr revid: vmt@openerp.com-20110925150232-qidzjypddp22el1f
2011-09-25 17:02:32 +02:00
Fabien Pinckaers dee06af4b1 [FIX] YAML empty records
bzr revid: fp@tinyerp.com-20110925140802-gnyr92iepj73ceg0
2011-09-25 16:08:02 +02:00
Launchpad Translations on behalf of openerp e33f8abf7c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110925044050-bjkzm7pf2t39mxwn
bzr revid: launchpad_translations_on_behalf_of_openerp-20110925044108-geoyxpt8oeooq8op
2011-09-25 04:41:08 +00:00
Olivier Dony da705a6b55 [FIX] rpc: honor *_interface options + log it
bzr revid: odo@openerp.com-20110925014243-0q1o67twburpga0z
2011-09-25 03:42:43 +02:00
Antony Lesuisse 404e545365 [FIX] revert 3651 al@openerp.com-20110925003322-yioqd1cdlffvr6uc http static is used by webdav
bzr revid: al@openerp.com-20110925012039-4hmqj2v5aaxxtxwy
2011-09-25 03:20:39 +02:00
Antony Lesuisse d3b76ea7f1 [IMP] temporary web dbfilter before metaoptions
bzr revid: al@openerp.com-20110925005437-7jdgrzl7i4ihx44y
2011-09-25 02:54:37 +02:00
Antony Lesuisse eda28246ee [REM] http static crap (you may use web controllers or /static dir)
bzr revid: al@openerp.com-20110925003322-yioqd1cdlffvr6uc
2011-09-25 02:33:22 +02:00
Antony Lesuisse b91d70a42d [MERGE] trunk
bzr revid: al@openerp.com-20110925000038-qwfvcrmndstygt2d
2011-09-25 02:00:38 +02:00
Vo Minh Thu 58ebd45efe [IMP] openerp.service: import at the top.
bzr revid: vmt@openerp.com-20110924163358-svx1yjuwdybxxr6k
2011-09-24 18:33:58 +02:00
Antony Lesuisse 02ee5ee64c [FIX] remove old-style test wsgi hook
bzr revid: al@openerp.com-20110924152401-5ilujqvg6gnhdrbz
2011-09-24 17:24:01 +02:00
Antony Lesuisse 73cdf6159e [FIX] wsgi server listen to ipv4 0.0.0.0
bzr revid: al@openerp.com-20110924151831-7nra57wpqq6oqose
2011-09-24 17:18:31 +02:00
Vo Minh Thu 4268ca38b7 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110924145449-1lfkhix60fdsucoy
2011-09-24 16:54:49 +02:00
Antony Lesuisse 7a88d9058d [MERGE] trunk
bzr revid: al@openerp.com-20110924145258-16r9qi7hr3dip1jz
2011-09-24 16:52:58 +02:00
Olivier Dony 7fad826761 [FIX] osv_memory_autovacuum: typo
bzr revid: odo@openerp.com-20110924025951-zn3i5vgux35urbyp
2011-09-24 04:59:51 +02:00
Olivier Dony 1bf74fa77e [MERGE] no-op merge of trunk, discarding osv-memory fix, obsolete already
bzr revid: odo@openerp.com-20110924022846-p08bawfxh5lym37u
bzr revid: odo@openerp.com-20110924025346-1khpike23e2honll
2011-09-24 04:53:46 +02:00
Olivier Dony dfccbaf28b [FIX] orm,expression: special-case previous commit for osv_memory
This will soon be obsolete and deleted, as soon
as osv_memory will be removed and merged inside
normal osv.

bzr revid: odo@openerp.com-20110924024928-awgncvhcyfkmnak5
2011-09-24 04:49:28 +02:00
Olivier Dony 67dcd97ea6 [FIX] orm,expression: sanity checks for domain terms, cleanup, tests
bzr revid: odo@openerp.com-20110924020303-2amkx95ij1yp8ofk
2011-09-24 04:03:03 +02:00
Olivier Dony e85f246469 [IMP] sql_db: auto-exception-logging can now be turned off per cursor, not only per query
bzr revid: odo@openerp.com-20110924015852-9vru7cdsmzbvault
2011-09-24 03:58:52 +02:00
Olivier Dony 334dee0479 [IMP] orm: fix Model hierarchy to avoid TransientModel leaking downstream
bzr revid: odo@openerp.com-20110923174018-8l2b4qc1vecgs0sc
2011-09-23 19:40:18 +02:00
Olivier Dony 3b974972a3 [IMP] review/cleanup + fix TransientModels inheritance
bzr revid: odo@openerp.com-20110923163027-50ov6qj3daax8hpi
2011-09-23 18:30:27 +02:00
Olivier Dony f2f3c916c9 [REM] orm: m2m._no_foreign_keys attribute removed, replaced by SQL check
bzr revid: odo@openerp.com-20110923162929-nhl32ie6zc6uuj8h
2011-09-23 18:29:29 +02:00
Olivier Dony 32b50ddca0 [FIX] ir.model: typo - ir.model.model is the model `identifier`
bzr revid: odo@openerp.com-20110923154514-8dzodtebfik892g3
2011-09-23 17:45:14 +02:00
Olivier Dony 49be41eceb [FIX] orm.py: missing patch, lost during last merge
See corresponding patch from trunk at revision
3612 revid:odo@openerp.com-20110919091952-05lfl2kncr3ep9nj

bzr revid: odo@openerp.com-20110923145517-odyq9z1h5ibck6nu
2011-09-23 16:55:17 +02:00
Olivier Dony 2fbd4dfcdf [FIX] loading: remove leftover debugging breakpoint
bzr revid: odo@openerp.com-20110923134413-d71l4y5265z3nwcb
2011-09-23 15:44:13 +02:00
Vo Minh Thu cc26f2b5d2 [IMP] tests: added a simple test case to create a database via XML-RPC.
The test setup starts an OpenERP server similarly to the
openerp-server script. For this to be possible, some of
its code is moved to openerp.services.

bzr revid: vmt@openerp.com-20110923133408-qqf4i5l86pkk7xn5
2011-09-23 15:34:08 +02:00
Olivier Dony 2e7a134228 [IMP] orm: introduce cleaner class hierarchy for models
We'll now have a BaseModel with 3 subclasses, AbstractModel,
TransientModel and Model. Model is for regular models, 
TransientModel for automatically-vacuumed models, and
AbstractModel for common superclasses meant to be 
inherited by other models only, and not directly used.

bzr revid: odo@openerp.com-20110923124525-jfzk55dk3ban2ps2
2011-09-23 14:45:25 +02:00
Vo Minh Thu 0c123711c5 [FIX] It is possible to mention an undeclared column in a domain.
Actually, this seems to be used for the logging columns
which are in database but not necessarily in _columns.
This is ugly and a warning is now issued.

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

bzr revid: vmt@openerp.com-20110923101839-ko0s7ekt4dlyvrx2
2011-09-23 12:18:39 +02:00
Launchpad Translations on behalf of openerp fc0ce2430c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110923043833-1a97lxlpim7mlfnj
2011-09-23 04:38:33 +00:00
Olivier Dony 7d4cdb69f2 [IMP] orm: minor cleanup: avoid duplicate functions to do the same thing
bzr revid: odo@openerp.com-20110922172027-7kiae4yd2vuwwk6w
2011-09-22 19:20:27 +02:00
Olivier Dony aece39ac83 [IMP] TransientModel: unnecessary unlink() override
Workflow instance deletion is taken care of by the
regular Model.unlink() method, by calling 
workflow.trg_delete().

bzr revid: odo@openerp.com-20110922165003-ub5761gjlnebz4yh
2011-09-22 18:50:03 +02:00
Olivier Dony 0d3085d14f [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110922154155-jq811w768d9zfgim
2011-09-22 17:41:55 +02:00
Olivier Dony 1edacff497 [MERGE] unaccent support + domain parsing cleanup/improvements
bzr revid: odo@openerp.com-20110922140856-p8q0ib1lirgv1g02
2011-09-22 16:08:56 +02:00
Xavier Morel 36b947c425 [IMP] use same fieldpath-splitting function in data_import and data_export, document it a bit
bzr revid: xmo@openerp.com-20110922122542-eradrjva23894wpr
2011-09-22 14:25:42 +02:00
niv-openerp e42256c478 [imp] switched the dates to UTC. I'm so happy.
bzr revid: nicolas.vanhoren@openerp.com-20110922095443-3pzaup9ryb2vb25m
2011-09-22 11:54:43 +02:00
niv-openerp 2508d7b985 [fix] problem when creating a new user without specifying any groups
bzr revid: nicolas.vanhoren@openerp.com-20110922093819-zzz9y9rt1seklhr1
2011-09-22 11:38:19 +02:00
Olivier Dony 0e55cc6cce [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110922071006-axaf12qvvw486z3e
2011-09-22 09:10:06 +02:00
Olivier Dony 9497814729 [IMP] expression: fix [(o2m,not in,...)] domains, re-enable tests, cleanup
bzr revid: odo@openerp.com-20110922005431-gnym5pormtjkfu8q
2011-09-22 02:54:31 +02:00
Antony Lesuisse c1026977ab [MERGE] currency position dsh
bzr revid: al@openerp.com-20110921232150-c1rpri2650363fkd
2011-09-22 01:21:50 +02:00
Olivier Dony c856d70bf5 [MERGE] sync latest trunk, including fixes for =like/=ilike
bzr revid: odo@openerp.com-20110921225225-zk98p2w1asoi2csl
2011-09-22 00:52:25 +02:00
Olivier Dony 6652943cd2 [IMP] minor cosmetic changes to improve readability and ease reviewing process
bzr revid: odo@openerp.com-20110921224423-h5hjnqrqgrp5hhau
2011-09-22 00:44:23 +02:00
Olivier Dony 886b7407de [FIX] osv.expression: fix =like/=ilike operators, broken by r.3631
Revision 3631 = vmt@openerp.com-20110920124252-l5snbvb7ywfogw1o

bzr revid: odo@openerp.com-20110921224208-mji81to3g4kpmkuq
2011-09-22 00:42:08 +02:00
Antony Lesuisse 7080c6cde5 [MERGE] res_currency add search view qdp
bzr revid: al@openerp.com-20110921213910-r96iwmc4bkcqoahs
2011-09-21 23:39:10 +02:00
Olivier Dony 6e4a93cd22 [MERGE] sync w/ latest trunk
bzr revid: odo@openerp.com-20110921162128-22sp59cn4xv983q5
2011-09-21 18:21:28 +02:00
Olivier Dony 90043e5b09 [FIX] res.users: fix user preferences form, broken by r.3526
bzr revid: odo@openerp.com-20110921155648-07bprt01zeuy9vm4
2011-09-21 17:56:48 +02:00
Quentin (OpenERP) 65c0649f70 [IMP] base, res_currency: added search view
bzr revid: qdp-launchpad@openerp.com-20110921112328-o2htuetcopy4jqj5
2011-09-21 13:23:28 +02:00
Amit (OpenERP) 635519fc7f [IMP]
bzr revid: apa@tinyerp.com-20110921105948-1vimypjfazwe5shx
2011-09-21 16:29:48 +05:30
Amit (OpenERP) adbc8dc3b6 [IMP]
bzr revid: apa@tinyerp.com-20110921105456-nel4dmqrttjztse2
2011-09-21 16:24:56 +05:30
Vo Minh Thu 9ac094fe5b [MERGE] ir.xml: ir.model ir.rule changed to use child_of instead of = for the company_id.
lp bug: https://launchpad.net/bugs/812843 fixed

bzr revid: vmt@openerp.com-20110921083041-gyl19c4elsge1ku0
2011-09-21 10:30:41 +02:00
Vo Minh Thu 2bd4708023 report_sxw: formating classes should return strings.
bzr revid: vmt@openerp.com-20110920132323-m9tjo3akasqlr0eg
2011-09-20 15:23:23 +02:00
Vo Minh Thu 73ea84b4e8 [MERGE] base_data.xml: change the VEB currency in VEF (which was needed since January 2008).
bzr revid: vmt@openerp.com-20110920125804-fezbk2vbkdl7eeam
2011-09-20 14:58:04 +02:00
Vo Minh Thu b4582815bc [MERGE] expression: support for =like/=ilike.
lp bug: https://launchpad.net/bugs/788106 fixed

bzr revid: vmt@openerp.com-20110920124252-l5snbvb7ywfogw1o
2011-09-20 14:42:52 +02:00
Vo Minh Thu e5c95611b3 [MERGE] orm: better exception messsages.
lp bug: https://launchpad.net/bugs/777472 fixed

bzr revid: vmt@openerp.com-20110920122411-iykenv7sq7r710vy
2011-09-20 14:24:11 +02:00
Vo Minh Thu bbd90612bc [MERGE] report/preprocess: make sure to remove the quotes of repeatIn third argument.
Also add docstrings to the workflow_service classes.

bzr revid: vmt@openerp.com-20110920120436-txwspf556lolbibv
2011-09-20 14:04:36 +02:00
Vo Minh Thu 8a83f57888 [MERGE] orm: properly handle multi-level _inherits.
lp bug: https://launchpad.net/bugs/823691 fixed

bzr revid: vmt@openerp.com-20110920075401-50z6crlhj7a8sv1g
2011-09-20 09:54:01 +02:00
Olivier Dony 54078c6394 [MERGE] trml2pdf: don't reassign a reused node.text value (additional fix)
lp bug: https://launchpad.net/bugs/640677 fixed

bzr revid: odo@openerp.com-20110919233407-gdna8j4gll0lm4um
2011-09-20 01:34:07 +02:00
Olivier Dony d66e4e6013 [MERGE] zipped module import wizard improvements, courtesy of Boris Timokhin
bzr revid: odo@openerp.com-20110919230538-mffhxr4e5y2jihk7
2011-09-20 01:05:38 +02:00
Olivier Dony 64d6989794 [MERGE] diagram view: properly handle non-ASCII arrow labels
lp bug: https://launchpad.net/bugs/727263 fixed

bzr revid: odo@openerp.com-20110919224850-ttok95g3eku7psqe
2011-09-20 00:48:50 +02:00
Olivier Dony 33b913fb56 [MERGE] allow overwriting existing terms when importing stand-alone translations
bzr revid: odo@openerp.com-20110919211310-zcndav9xmqm0c5df
2011-09-19 23:13:10 +02:00
Antony Lesuisse d4c8370d92 [MERGE] res_users rename companies tab into allowed companies
lp bug: https://launchpad.net/bugs/714471 fixed

bzr revid: al@openerp.com-20110919211048-riv3mdkowtnrn96a
2011-09-19 23:10:48 +02:00
Olivier Dony 6b1c79aa74 [IMP] ir.actions.client: missing access rights
bzr revid: odo@openerp.com-20110919210121-rypsejhd3h1uzcwm
2011-09-19 23:01:21 +02:00
Olivier Dony c6370622e5 [FIX] orm: quote column names in queries to respect case and be consistent
Quoting column names make the case-sensitive in PostgreSQL,
and this is the default strategy we are using so far. It is
important to be consistent there.
We might want to do the same to table names too.
This allows create fields with mixed cases names for example.

bzr revid: odo@openerp.com-20110919201845-heer0rttcouvtc9x
2011-09-19 22:18:45 +02:00
Olivier Dony 705f238f08 [MERGE] missing res.currency.rate.type access rights
bzr revid: odo@openerp.com-20110919173606-1izhy7i9dt25lm45
2011-09-19 19:36:06 +02:00
Olivier Dony 4517dbb852 [MERGE] refactoring: view inheritance query moved to ir.ui.view, courtesy of Sebastien Beau (Akretion)
bzr revid: odo@openerp.com-20110919152434-uohc9mqr4n0b1sc8
2011-09-19 17:24:34 +02:00
Aline Preillon 63b47abd00 [IMP] improved res.partner demo data
bzr revid: aline@aline-laptop-20110919150547-vki0m64iv0ccktlv
2011-09-19 17:05:47 +02:00
Olivier Dony 8c5cb638b9 [MERGE] enforce unique `key` attribute for res.currency, ir.model, res.company
For res.company the constraint is made of 2 parts:
 - one normal unique constraint (name,company_id) to catch
   most cases and define the user error message
 - one additional unique index to enforce the unique currency
   name even for multiple entries with NULL company_id, not
   caught by the constraint. The index is named with the 
   constraint name as prefix, in order to automatically
   share the user error message

Also, cleanup up the res.currency views a bit, and improved
field labels in ir.model to make them easier to understand.

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

bzr revid: odo@openerp.com-20110919144821-708avl7t9q7g8vpr
2011-09-19 16:48:21 +02:00
Vo Minh Thu d2ff44ad72 [FIX] base_security: ir rules are noupdate=1.
lp bug: https://launchpad.net/bugs/727277 fixed

bzr revid: vmt@openerp.com-20110919114717-3808os44pxpszk82
2011-09-19 13:47:17 +02:00
Vo Minh Thu 048527e757 [IMP] ir/wizard: removed the unused create_action wizard.
bzr revid: vmt@openerp.com-20110919093626-guayq71dbbkmdn90
2011-09-19 11:36:26 +02:00
Naresh (OpenERP) 1d71f8484a [MERGE FROM TRUNK]
bzr revid: nch@tinyerp.com-20110919093224-5i3dslmw5ubatdjt
2011-09-19 15:02:24 +05:30
Olivier Dony ad23141729 [FIX] orm: refactoring and fix of stored functions processing by _store_get_values
- Refactoring to make the function readable and maintainable
- Fixed algorithm to properly take into account the priority of all stored functions,
  and not just the priority of the first function for a given model, which could hide
  other stored function with higher priorities.

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

bzr revid: odo@openerp.com-20110919091952-05lfl2kncr3ep9nj
2011-09-19 11:19:52 +02:00
Amit (OpenERP) ad60a40879 [IMP]:improved
bzr revid: apa@tinyerp.com-20110919091701-t4jzmqm4245knacb
2011-09-19 14:47:01 +05:30
Amit (OpenERP) 496362b29a [IMP]:improved kanban view for partners.
bzr revid: apa@tinyerp.com-20110919085920-p4o1pam5mrjth29r
2011-09-19 14:29:20 +05:30
Amit (OpenERP) 1f9a9b4d90 improved
bzr revid: apa@tinyerp.com-20110919072100-mypi36z63upp10oq
2011-09-19 12:51:00 +05:30
Amit (OpenERP) 215d89d1cf [IMP]:base:improve kanban view for contacts.
bzr revid: apa@tinyerp.com-20110919064708-sg2kltpedp3w0h9u
2011-09-19 12:17:08 +05:30
sebastien beau 043f50ba12 [REF] refactor code in order to add the possibility to overwrite the way to inherit the view
bzr revid: sebastien.beau@akretion.com.br-20110918235947-5k6bxg2fbshhtrsd
2011-09-19 01:59:47 +02:00
Fabien Pinckaers 3112ce242b merge
bzr revid: fp@tinyerp.com-20110917144621-c01methbaxzxdong
2011-09-17 16:46:21 +02:00
Launchpad Translations on behalf of openerp fc4d9abc83 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20110917045438-cqv2p3rl60izw3rb
bzr revid: launchpad_translations_on_behalf_of_openerp-20110917050345-nbzoq1kehy4em8kt
2011-09-17 05:03:45 +00:00
Olivier Dony a78a7e2950 [IMP] ir.actions.server: slightly better sample/doc for python type actions
bzr revid: odo@openerp.com-20110916141358-z2mwij0u7y13jeuq
2011-09-16 16:13:58 +02:00
Amit Bhavsar (Open ERP) dc54be9bb9 [kabanization],kanban view for the partner
bzr revid: amb@tinyerp.com-20110916124725-1d07ph63gx8nv3u1
2011-09-16 18:17:25 +05:30
Tejas (OpenERP) 2e35f39606 [kanban] bold tag removed
bzr revid: tta@openerp.com-20110916114945-3zge1h6e6x2ohxnm
2011-09-16 17:19:45 +05:30
Tejas (OpenERP) 00a2a25930 [kanban] id changed and make email and phone italic
bzr revid: tta@openerp.com-20110916111526-znb3mc918jfzosw7
2011-09-16 16:45:26 +05:30
Harry (OpenERP) 63987af41e [FIX] edi: get partner already exits or not using get_object and get_object_by_name.
bzr revid: hmo@tinyerp.com-20110916110800-8dec58lrgyilv144
2011-09-16 16:38:00 +05:30
Tejas (OpenERP) fce6f5932b [kanban] contacts view for kanban
bzr revid: tta@openerp.com-20110916104501-tuwftefbl7lumix7
2011-09-16 16:15:01 +05:30
Harry (OpenERP) 52c5e29710 [FIX] edi_company: add default addess
bzr revid: hmo@tinyerp.com-20110916095328-8wlmqjz4wjfrt0ir
2011-09-16 15:23:28 +05:30
Vo Minh Thu cd89f5a5a4 [MERGE] fields: correct (5,_) operation on many2many (delete instead of set null).
lp bug: https://launchpad.net/bugs/818189 fixed

bzr revid: vmt@openerp.com-20110915152052-ujbfj2zgv06eairy
2011-09-15 17:20:52 +02:00
Vo Minh Thu 94662b9727 [MERGE] orm: convert exception to unicode.
lp bug: https://launchpad.net/bugs/811519 fixed

bzr revid: vmt@openerp.com-20110915145933-p2apahreex255nd6
2011-09-15 16:59:33 +02:00
Stephane Wirtel 73f8c52ad2 [FIX] base: res_currency#company_id remove the default value based on the currency of the company
bzr revid: stw@openerp.com-20110915142638-gmpk24otjtrv0jtz
2011-09-15 16:26:38 +02:00
Stephane Wirtel 46d4042fe4 [IMP] base: show the 'field' field in the search view
bzr revid: stw@openerp.com-20110915142438-rk0x1xjn3h4qre2d
2011-09-15 16:24:38 +02:00
Vo Minh Thu 9c470cda34 [MERGE] ir_action: properly handle the False value for a reference field in a onchange method.
lp bug: https://launchpad.net/bugs/793682 fixed

bzr revid: vmt@openerp.com-20110916123948-qaoou8rj2rx5l4ou
2011-09-16 14:39:48 +02:00
Vo Minh Thu 20d7d05a60 [IMP] openerp.modules.db: nice critical logging, and nice IOError exception
when the base.sql is not found.

bzr revid: vmt@openerp.com-20110916121315-lklf5nib8u1pztk5
2011-09-16 14:13:15 +02:00
Vo Minh Thu 70898d7287 [MERGE] orm: export boolean values as strings, even for False.
lp bug: https://launchpad.net/bugs/831009 fixed

bzr revid: vmt@openerp.com-20110916103726-x7nmconcxem915m1
2011-09-16 12:37:26 +02:00
Vo Minh Thu caef181733 [FIX] ir_action: avoid returning a None context.
lp bug: https://launchpad.net/bugs/793682 fixed

bzr revid: vmt@openerp.com-20110916101432-cj8xd7uefy0k5suz
2011-09-16 12:14:32 +02:00
Vo Minh Thu 8254ffe9c8 [MERGE] ir_actions: swapped (corrected) signal name with module name, usability enhancement.
lp bug: https://launchpad.net/bugs/819872 fixed

bzr revid: vmt@openerp.com-20110916082907-n73wothbef0wfq2i
2011-09-16 10:29:07 +02:00
Xavier Morel 556a17d5bc [FIX] race condition in RegistryManager
When two requests arrive simultanously for the same uninitialized db,
the first request starts the db initialization, but the second one
immediately gets the partially uninitialized registry (actually just
created, so generally completely uninitialized), leading to an access
error in later code (as soon as a registry object is accessed).

Add a GRML (Global RegistryManager Lock) to ensure the RegistryManager
*never* returns a partially initialized registry.

The current implementation is simple (just lock all RegistryManager
methods before they manipulate registries), but overly broad. This is
an area which might be optimizable if there are perf/responsivity
issues (e.g. each Registry instance could have a lock, and the
RegistryManager would grab the instance's, allowing the inititlization
of registry A not to block registry B from being returned in heavily
concurrent uses).

However this is not an issue in multiprocessing scenarios, which are
being planned for the near future. So for now, being correct is
probably the best idea.

bzr revid: xmo@openerp.com-20110916075227-0zutzlxn2dcd94c4
2011-09-16 09:52:27 +02:00
Vo Minh Thu 92fef4559b [MERGE] base_module_import_view: better strings messages.
lp bug: https://launchpad.net/bugs/830902 fixed

bzr revid: vmt@openerp.com-20110915142348-z2t5duy9sma7doz7
2011-09-15 16:23:48 +02:00
Vo Minh Thu ce19d8d027 [MERGE] ir_module_module: better (less browse() calls) fields.function implementation.
bzr revid: vmt@openerp.com-20110915141533-wzx0qp0084ogr6hr
2011-09-15 16:15:33 +02:00
Vo Minh Thu 1ec4c693d9 [FIX] report: make sure we can use an image path starting with the name of some module,
irrespective of the different addons paths.

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

bzr revid: vmt@openerp.com-20110915140229-4d43wtbwzxr7s74i
2011-09-15 16:02:29 +02:00
Xavier Morel 662c8842f4 [IMP] fields_view_get: listcomps are still awesome
also use itertools.chain to iterate over multiple lists in sequence, instead of concatenating them

bzr revid: xmo@openerp.com-20110915124741-v5uneqmt2c3v6cmp
2011-09-15 14:47:41 +02:00
Xavier Morel a09be0e9b9 [IMP] simplify search view generation: rely on etree.SubElement to graft new nodes to the search view
bzr revid: xmo@openerp.com-20110915123707-901mkfkz8e6ikre4
2011-09-15 14:37:07 +02:00
Xavier Morel 7bb856b834 [IMP] search view generation: update fields set in place instead of creating a new set via union
bzr revid: xmo@openerp.com-20110915123155-a5ht8nhfp9kq0kst
2011-09-15 14:31:55 +02:00
Xavier Morel eeb31efa88 [IMP] automatic search view generation: comprehensions are awesome
bzr revid: xmo@openerp.com-20110915122834-0ec4dkaznbhtc0kc
2011-09-15 14:28:34 +02:00
Xavier Morel e878560c74 [ADD] small helper to calendar generation code, in order to make flow clearer
bzr revid: xmo@openerp.com-20110915122443-hvk1u2372ppd77m1
2011-09-15 14:24:43 +02:00
Xavier Morel 74e98f4220 [ADD] error when neither date_stop nor date_delay can be generated for a default calendar view
bzr revid: xmo@openerp.com-20110915121544-eq3mumulb0qp9yfa
2011-09-15 14:15:44 +02:00
Xavier Morel 4cdda26b6c [IMP] convert default calendar view generation (from fields_view_get) to lxml.etree
bzr revid: xmo@openerp.com-20110915121129-fcdq8e0rix2ocpwt
2011-09-15 14:11:29 +02:00
Xavier Morel 005e2b87a5 [IMP] etree-ify default view generations
* Search already used etree internally, remove serialization to string
* form and tree were easy to convert
* pull down fvg's parsing (etree.fromstring) into calendar generator before converting it

bzr revid: xmo@openerp.com-20110915120429-syz190w61iq52rel
2011-09-15 14:04:29 +02:00
Xavier Morel ebb2072207 [IMP] regroup all __get_default_$name_view calls into a single parametric getattr
Also rename __get_default_ to _get_default_ so it can be found by getattr

bzr revid: xmo@openerp.com-20110915111255-1i0y555er3nwtkzg
2011-09-15 13:12:55 +02:00
Xavier Morel 734c1a43a0 [REF] extract the two inlined default view generators left into fields_view_get into their own methods
follow the preexisting __get_default_$name_view

bzr revid: xmo@openerp.com-20110915111221-20ktl1bi2qne5wz7
2011-09-15 13:12:21 +02:00
Xavier Morel 8a9c0dbad7 [IMP] bulk-update fields_view_get result via dict.update instead of a bunch of __setitem__
bzr revid: xmo@openerp.com-20110915111213-zigij077k9ss9p6e
2011-09-15 13:12:13 +02:00