Commit Graph

882 Commits

Author SHA1 Message Date
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 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
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
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
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