Christophe Simonis
5bb14725d4
[IMP] osv: the object pool is not a service anymore
...
bzr revid: chs@openerp.com-20101213105104-jpctooc6j7yc8i8i
2010-12-13 11:51:04 +01:00
Olivier Dony
83115a45af
[FIX] orm: preserve elements order when inheriting views, also after a leaf element
...
lp bug: https://launchpad.net/bugs/686275 fixed
bzr revid: odo@openerp.com-20101211012104-gt1cg3z1ec91mg34
2010-12-11 02:21:04 +01:00
Olivier Dony
1d85e7a0f6
[IMP] orm: additional error message about missing index on parent_[left|right] columns during creation
...
bzr revid: odo@openerp.com-20101211000951-gn5dejp3b7dyz24e
2010-12-11 01:09:51 +01:00
Olivier Dony
536e321ca7
[IMP] orm.search: more quietly ignore invalid m2o order spec + fallback to default _order
...
bzr revid: odo@openerp.com-20101211000810-h1sirszmh0xp52x4
2010-12-11 01:08:10 +01:00
Olivier Dony
4226a3adb2
[FIX] orm: default search view should be more backwards-compatible and lenient
...
We should consider the select flag from the model as well as the attributes from tree+form view, as in v5.
lp bug: https://launchpad.net/bugs/488128 fixed
bzr revid: odo@openerp.com-20101210212529-oc5n8n9w8ila9j4u
2010-12-10 22:25:29 +01:00
YSA (OpenERP)
5b67a3154e
[IMP] orm: somewhat better error message when view inheritance fails on non-<field> element
...
Inheritance at field level already has a correct error message
lp bug: https://launchpad.net/bugs/623845 fixed
bzr revid: odo@openerp.com-20101210150355-jjdghifgyea07cv8
2010-12-10 16:03:55 +01:00
Olivier Dony
bb82904ba3
[FIX] fields.function: make sure all binary values can always be serialized as valid XML
...
Nnormally, binary fields should be 7-bit ASCII base64-encoded data, but sometimes
it's not the case, so we do additional sanity checks to make sure the binary values
can pass safely via xmlrpc as strings.
As a last resort we coerce the binary values to unicode to make sure they can
be safely serialized as utf-8-encoded values, always valid XML characters.
When this happens, decoding on the other endpoint is not likely to produce
the expected output, but this isjust a safety mechanism(in these cases base64
data or xmlrpc. Binary values should be returned instead by the function field.
In a future version we should probably switch to using XMLRPC Binary types always for
passing fields.binary values, but this requires more refactoring.
lp bug: https://launchpad.net/bugs/670778 fixed
bzr revid: odo@openerp.com-20101209230742-gwf8e4zvmk43k6ln
2010-12-10 00:07:42 +01:00
Olivier Dony
9daa68e67c
[IMP] orm,base: added context to _constraints functions + use generic osv.osv.check_recursion()
...
lp bug: https://launchpad.net/bugs/525808 fixed
bzr revid: odo@openerp.com-20101209105733-j3uffwp4rl07nzc4
2010-12-09 11:57:33 +01:00
Olivier Dony
6f0660eaa0
[FIX] orm.read_group: support ordering by any field (not just m2o ones)
...
bzr revid: odo@openerp.com-20101206131818-ibah9gt409jbil3l
2010-12-06 14:18:18 +01:00
Olivier Dony
170793a683
[MERGE] fix for bug 626806 by xrg - i.e. [(x2m,in,[])] should match nothing
...
lp bug: https://launchpad.net/bugs/626806 fixed
bzr revid: odo@openerp.com-20101203142342-2g5k64qoouuuxyti
2010-12-03 15:23:42 +01:00
Olivier Dony
f1cfc436a7
[MERGE+FIX] fixes for translations,sequence,copy,error messages - some patches courtesy of Margarita Manterola and Don Kirkby
...
lp bug: https://launchpad.net/bugs/672130 fixed
lp bug: https://launchpad.net/bugs/663775 fixed
lp bug: https://launchpad.net/bugs/673194 fixed
lp bug: https://launchpad.net/bugs/663977 fixed
bzr revid: odo@openerp.com-20101130110940-0tf6ra0uwhiptieb
2010-11-30 12:09:40 +01:00
P. Christeas
12f5aa0a18
expression: fix "m2o, m2m in []" expressions, bug 626806
...
After some discussions, we decided that the desired behavior of the
ORM for one2many and many2many fields should be:
(foobar_id,'in', []) => empty result, because the list is empty
(foobar_id,'in',False) => find records that don't have a foobar
bzr revid: p_christ@hol.gr-20101129183413-yi1jzdwr1tis7d8t
2010-11-29 20:34:13 +02:00
Olivier Dony
839eb5f1c8
[MERGE] orm.read_group: partial support for orderby (m2o only so far)
...
bzr revid: odo@openerp.com-20101129141204-beieaccpl23pqmge
2010-11-29 15:12:04 +01:00
P. Christeas, O. Dony
6a69f37cf0
[MERGE] many improvements regarding translations, logging, reports, http, speed
...
bzr revid: odo@openerp.com-20101125142219-8bkqfboyuslzpvyo
2010-11-25 15:22:19 +01:00
Olivier Dony
ad490bdcf5
[IMP] orm.write: ignore unknown fields, more consistent with rest of API
...
bzr revid: odo@openerp.com-20101125135800-dzad2x864bn8p1ah
2010-11-25 14:58:00 +01:00
Yogesh Sakhreliya
456579b198
[FIX] add unique constraint in many2many field.
...
bzr revid: ysa@tinyerp.com-20101125093424-thmqvllabcx0sxpw
2010-11-25 15:04:24 +05:30
Yogesh Sakhreliya
9de9f34ca8
Merge with lp:openobject-server
...
bzr revid: ysa@tinyerp.com-20101125084117-zyr1ahoyb9awl583
2010-11-25 14:11:17 +05:30
OpenERP GTK R&D Team
a5327f27f9
[MERGE] read_group: now returns count information for the groups
...
bzr revid: odo@openerp.com-20101124184433-eo54itrejuak0exp
2010-11-24 19:44:33 +01:00
Olivier Dony
30cb4b8891
[IMP] orm.orm: cleaned up comments after previous patches
...
bzr revid: odo@openerp.com-20101124184108-iw1up4jomysfoh85
2010-11-24 19:41:08 +01:00
Olivier Dony
475667d384
[FIX] orm.import_data: also translate SQL constraints error messages that are not callable
...
bzr revid: odo@openerp.com-20101124172819-33ahiq3aacgwt8f2
2010-11-24 18:28:19 +01:00
Olivier Dony
276a54b0af
[FIX] osv.osv: code cleanup after merging previous patches
...
bzr revid: odo@openerp.com-20101124164041-760b4zoidv0omu6c
2010-11-24 17:40:41 +01:00
Olivier Dony
af506691a3
[MERGE] merged second batch of fixes from xrg-pg84 branch
...
bzr revid: odo@openerp.com-20101124152707-ksfaru7en81x8xn2
2010-11-24 16:27:07 +01:00
Don Kirkby
2e8ab9079a
[FIX] workaround infinite loop while duplicating records in lp:673194
...
bzr revid: ysa@tinyerp.com-20101124094721-h831hkof77cuvaez
2010-11-24 15:17:21 +05:30
Margarita Manterola
b140c3cacb
Confirm message support translation and export
...
bzr revid: ysa@tinyerp.com-20101124093647-hbh2gzghkf39desi
2010-11-24 15:06:47 +05:30
Yogesh Sakhreliya
8940877f64
revert rev no :-3030
...
bzr revid: ysa@tinyerp.com-20101124093435-3d7ioctc8raaf1j2
2010-11-24 15:04:35 +05:30
Yogesh Sakhreliya
ca3a65d9ad
Confirm message support translation and export--author=Margarita Manterola
...
bzr revid: ysa@tinyerp.com-20101124091207-5gccf6h5h0hgu06i
2010-11-24 14:42:07 +05:30
Olivier Dony
6ff627d275
[IMP] ir.model.data,res.log: allow marking res.log entries as read upon creation via context + do it during module install to avoid useless log spam
...
bzr revid: odo@openerp.com-20101123160506-qsxa7gm5j8scphdz
2010-11-23 17:05:06 +01:00
P. Christeas
c2c264467f
fields: conform some default arguments to the coding standards
...
Side-effects may appear, let us test.
bzr revid: p_christ@hol.gr-20101123154408-qlkittdb7ogrqq2s
2010-11-23 17:44:08 +02:00
P. Christeas
ba47847b20
ORM: moved columns should carry the old name, not the table
...
When a column changes type in module upgrades, we have code to rename
the column. The new name shall be based on the old column name, not the
name of the table.
bzr revid: p_christ@hol.gr-20101123135748-z8rtmy36c8u972xb
2010-11-23 15:57:48 +02:00
P. Christeas
962a4cce70
orm: revert e940ece64169da4f, read(<bad-id>) must return empty list!
...
bzr revid: p_christ@hol.gr-20101123135728-rqoec2b92roln4up
2010-11-23 15:57:28 +02:00
P. Christeas
6e13dcb8a2
orm: Return numeric uid at perm_read() when no access to res.user
...
If a res.user belongs to a company_id that the current user has no access
to, perm_read() wouldn't be able to return results (but exception). Now,
just skip the uid->login resolution and return the numeric value instead.
bzr revid: p_christ@hol.gr-20101123135654-bslxfv93p10216d3
2010-11-23 15:56:54 +02:00
Olivier Dony
5d09bce920
[IMP] orm: proper test for column names in check_recursion()
...
bzr revid: odo@openerp.com-20101123125638-dhd95d6a6xg912ls
2010-11-23 13:56:38 +01:00
Thibault Francois
419133ce8b
[MERGE] with trunk
...
bzr revid: tfr@openerp.com-20101119133226-g04bvgnyr0jp7psz
2010-11-19 14:32:26 +01:00
Thibault Francois
62e83fd5a0
[FIX] orm : webclient pass context insted order by, arrange order of args
...
bzr revid: tfr@openerp.com-20101119131550-s350knora0hma95z
2010-11-19 14:15:50 +01:00
nch@tinyerp.com
6b1beeae18
[IMP] list : groupby field can be sorted
...
bzr revid: tfr@openerp.com-20101119131338-7zfxqphrd5fv0bxq
2010-11-19 14:13:38 +01:00
P. Christeas
ac2c09908a
OSV: a lint check fix
...
bzr revid: p_christ@hol.gr-20101118184840-08li9h2ebfzdtxpy
2010-11-18 20:48:40 +02:00
P. Christeas
41c9098ca9
OSV: Fix callable _sql_constraint messages
...
This fixes the support for callable sql_constraint messages, which have
always been wrong. It respects the (cr, uid, ids, context) arguments and
will fallback to Postgres's error if it cannot call.
Note that sql constraints are not properly explained when base_module_record
or audittrail are installed.
bzr revid: p_christ@hol.gr-20101118184643-8tnmj83b09kuvf1j
2010-11-18 20:46:43 +02:00
P. Christeas
d0dee32019
osv: Improve the translation logic for the osv.check wrapper
...
Done after bug [655783], the osv layer is too early to call the _().
Also, we cannot trust the cursor to perform a further SQL query on
it, since it carries the IntegrityError.
bzr revid: p_christ@hol.gr-20101118184638-2yrfpvx9har48h1g
2010-11-18 20:46:38 +02:00
P. Christeas
c8f52b8c98
ORM, ir_*: convert standard constraint messages to callables
...
Also, fix way that callable constraints are passed with the context so
that they can have translatable strings inside (but not on the results
of the callable).
Conflicts:
bin/addons/base/ir/ir_model.py
bin/addons/base/module/module.py
bin/tools/translate.py
bzr revid: p_christ@hol.gr-20101118164721-19rgx43d3p96b2lf
2010-11-18 18:47:21 +02:00
P. Christeas
406e8aaba6
ORM: do import warnings, needed for _check_recursion() earlier patch
...
bzr revid: p_christ@hol.gr-20101116163536-jmfxkzagrq5fcrx8
2010-11-16 18:35:36 +02:00
P. Christeas
08ef1a95f1
ORM: deprecate check_recursion() in favour of _check_recursion()
...
bzr revid: p_christ@hol.gr-20101116150435-jfmjah8ookf11x3y
2010-11-16 17:04:35 +02:00
P. Christeas
4187facd9f
ORM: Better message when copying non-existing records
...
by: jvo@openerp.com
In both cases, we end up with an exception. But it is better to know
which model+id has failed.
bzr revid: p_christ@hol.gr-20101116150047-xtyz8nrt6465ug2k
2010-11-16 17:00:47 +02:00
P. Christeas
63d562de39
ORM: fix bug at orm.copy_data(), would reset context[lang]
...
Thanks to Dr. Gassauer that made me revise this code.
bzr revid: p_christ@hol.gr-20101116150025-ssyiix1c72t04fbk
2010-11-16 17:00:25 +02:00
Anup (OpenERP)
602815a5ad
[FIX](Maintenance) Exportation fixed for o2m and m2m
...
bzr revid: ach@tinyerp.com-20101116092650-cdzcqn5tc7hq5l3m
2010-11-16 14:56:50 +05:30
Numerigraphe - Lionel Sausin
8b3bd3ccee
[FIX] typo in field name
...
bzr revid: ls@numerigraphe.fr-20101112142119-e9gqnld7m5dd62kh
2010-11-12 15:21:19 +01:00
Numerigraphe - Lionel Sausin
182cf2b196
[MERGE] sync with the trunk
...
bzr revid: ls@numerigraphe.fr-20101112141041-19kpvr7pzxqankqo
2010-11-12 15:10:41 +01:00
Numerigraphe - Lionel Sausin
e013734045
[REF] stricter checking of defauts in fields & orm __init__
...
bzr revid: ls@numerigraphe.fr-20101112134214-h27a1ewxr9c4g3id
2010-11-12 14:42:14 +01:00
Numerigraphe - Lionel Sausin
1fff5e28f1
[FIX] incorrect spellings (childs -> children)
...
bzr revid: xmo@openerp.com-20101112103952-qabm06zgu6s5qrnn
2010-11-12 11:39:52 +01:00
RGA (OpenERP)
5d67b0fe74
[IMP] group by header should display how many children it has
...
bzr revid: rga@tinyerp.com-20101111110420-ay27xo0a5g98f7aq
2010-11-11 16:34:20 +05:30
Olivier Dony
e552766352
[IMP] orm: spelling: default language is en_US, so we should us International/US forms
...
lp bug: https://launchpad.net/bugs/546138 fixed
bzr revid: odo@openerp.com-20101108143014-p3xlsiz3kb79ckdt
2010-11-08 15:30:14 +01:00