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
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
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
Jay (OpenERP)
53d3e74d66
[FIX] Removed pdb trace log statement
...
bzr revid: jvo@tinyerp.com-20101104191713-xkek2g36xzlzcij2
2010-11-05 00:47:13 +05:30
Olivier Dony
e1f5158d7d
[ADD] fields.binary: support 'bin_size_XXX' context flags to selectively enable returning size/contents of a binary field - pending API change after 6.0
...
bzr revid: odo@openerp.com-20101104170523-z1n4jop5e46t3wtu
2010-11-04 18:05:23 +01:00
Olivier Dony
be2926de63
[FIX] fields.many2many: get() should ignore "string" domains, meant for client-side eval (pending API change later to make the distinction explicit?)
...
bzr revid: odo@openerp.com-20101021163131-bbmtpygtwton3acv
2010-10-21 18:31:31 +02:00
Olivier Dony
f3f9478b6a
[IMP] fields.many2many: improve/refactor many2many.get() after last domain patch (initial refactoring from P. Christeas)
...
bzr revid: odo@openerp.com-20101021130045-s7ntdh7xyu20hgws
2010-10-21 15:00:45 +02:00
Harry (OpenERP)
54ae6b5875
[FIX] field: support domain in many2many field
...
bzr revid: hmo@tinyerp.com-20101020125821-mh39jxaqor7z6vhg
2010-10-20 18:28:21 +05:30
Anup (OpenERP)
60f2b42647
[FIX] fields.py Corrected
...
lp bug: https://launchpad.net/bugs/625896 fixed
bzr revid: ach@tinyerp.com-20101015103003-34eytuy07mu8pt1s
2010-10-15 16:00:03 +05:30
Olivier Dony
a79d0ee8e3
[FIX] osv.fields.one2many: corrected get() after incorrect patches
...
bzr revid: odo@openerp.com-20101013163927-rsvoademz4iumjbh
2010-10-13 18:39:27 +02:00
Jay (OpenERP)
2cfe39726e
[FIX] fields : Use of defaultdict removed
...
bzr revid: jvo@tinyerp.com-20101013150040-r26sek4x6049u9l7
2010-10-13 20:30:40 +05:30
Jay (OpenERP)
092c4dff88
[REVERT] Reverted above fix , defaultdict seems faulty
...
bzr revid: jvo@tinyerp.com-20101013132833-1ogy3q3ci5zy6bh4
2010-10-13 18:58:33 +05:30
Sébastien BEAU - http://www.akretion.com
2d426ad6ce
[FIX] Fields : correction on get() of O2M
...
lp bug: https://launchpad.net/bugs/603708 fixed
bzr revid: jvo@tinyerp.com-20101013121705-2dqetjqp9viavk0e
2010-10-13 17:47:05 +05:30
Xavier Morel
040f2ce15b
[FIX] use correct default callable for a datetime to get the current datetime as of the object's creation
...
Add staticmethods to fields.time, fields.date and fields.datetime so they can generate default values which they can actually consume
bzr revid: xmo@openerp.com-20101012160130-jwgl7cok853fiyap
2010-10-12 18:01:30 +02:00
Numerigraphe - Lionel Sausin
70fd90d33b
[FIX] mutable default in osv
...
lp bug: https://launchpad.net/bugs/525808 fixed
bzr revid: ls@numerigraphe.fr-20100722134948-5axugpkr0nwbda2a
2010-07-22 15:49:48 +02:00
olt@tinyerp.com
6acee33b4e
[FIX] osv.fields: fromkeys second argument is only evaluated once
...
bzr revid: olt@tinyerp.com-20100922092349-ab36ynbdzqvexryb
2010-09-22 11:23:49 +02:00
Anup (OpenERP)
50985408b6
[FIX] Fixed _get_by_id() method of fields.property
...
bzr revid: ach@tinyerp.com-20100921085549-lw3x6w4zbljscxic
2010-09-21 14:25:49 +05:30
Fabien Pinckaers
31efd060f4
fix
...
bzr revid: fp@tinyerp.com-20100919133209-mqfh0nm17e8hosr1
2010-09-19 15:32:09 +02:00
Fabien Pinckaers
b1ed0bbb57
[FIX] properties
...
bzr revid: fp@tinyerp.com-20100919123445-2vofhh1qkspod92r
2010-09-19 14:34:45 +02:00
Fabien Pinckaers
8b28a3cb5e
fix
...
bzr revid: fp@tinyerp.com-20100919094518-j01cwcsarlgmtv0g
2010-09-19 11:45:18 +02:00
Fabien Pinckaers
a8aa3bba98
speed_improve
...
bzr revid: fp@tinyerp.com-20100918144804-3zf2wrfylwg4duzx
2010-09-18 16:48:04 +02:00
Fabien Pinckaers
7fd317057a
speed_improve
...
bzr revid: fp@tinyerp.com-20100918144732-wjyp8mvhck3lva1w
2010-09-18 16:47:32 +02:00
Fabien Pinckaers
37fb76e236
improve_speed
...
bzr revid: fp@tinyerp.com-20100918143750-t03rd85r1r7zdnec
2010-09-18 16:37:50 +02:00
Fabien Pinckaers
c3ec58b1a4
improve_speed
...
bzr revid: fp@tinyerp.com-20100918143559-hcgi2x1af0pyt1ph
2010-09-18 16:35:59 +02:00
Fabien Pinckaers
825c70aeed
[IMP] Speed improvements
...
bzr revid: fp@tinyerp.com-20100918110731-0zacb01o17bd0h55
2010-09-18 13:07:31 +02:00
Fabien Pinckaers
c8ae6b4736
[FIX] Speed improvement properties
...
bzr revid: fp@tinyerp.com-20100918101958-jj3vpqzy6lbvv0yk
2010-09-18 12:19:58 +02:00
Olivier Dony
71e504345d
[FIX] osv.fields: properly handle reading a m2o with no value set
...
bzr revid: odo@openerp.com-20100817132829-fy1k9hz7cukx194z
2010-08-17 15:28:29 +02:00
Olivier Dony
3e858f1da5
[FIX] orm/fields.function: function/related fields with type=m2o must properly return tuples (name_get)
...
bzr revid: odo@openerp.com-20100813002321-13vb9675qvqr16kc
2010-08-13 02:23:21 +02:00
Christophe Simonis
1a4ef0313f
[FIX] core: correct fields.related behavior at write() (forwardport of 2093 chs@openerp.com-20100810094721-ydk75n23aa8km9xo from stable branch)
...
bzr revid: chs@openerp.com-20100810095948-8qetzs6mh3n7h0lz
2010-08-10 11:59:48 +02:00
Jay (Open ERP)
051c07966b
[FIX] fields.related should not break when o2m,m2m returns null
...
bzr revid: jvo@tinyerp.com-20100727093909-i2ixgcv2hrhcp0fq
2010-07-27 15:09:09 +05:30
Fabien Pinckaers
93832f58e8
fix
...
bzr revid: fp@tinyerp.com-20100625150340-vqz83wq7a8rfb36u
2010-06-25 17:03:40 +02:00
qdp-launchpad@tinyerp.com
03c28818a4
[FIX] fields.py: reverted missy change that doesn't prevent sql injection and causes crashes
...
bzr revid: qdp-launchpad@tinyerp.com-20100625084906-bme05poqve5d628k
2010-06-25 10:49:06 +02:00
Anup (OpenERP)
253c7786a3
[MERGE] Merged from the main trunk server
...
bzr revid: ach@tinyerp.com-20100615133947-xmf38gf47ljnb00l
bzr revid: ach@tinyerp.com-20100616112927-8ecwh6n270tkp6gp
bzr revid: ach@tinyerp.com-20100618093614-7wtc8cw3korg3280
2010-06-18 15:06:14 +05:30
Fabien Pinckaers
7c584a3d18
[FIX] new bug just introduced
...
bzr revid: fp@tinyerp.com-20100616182042-poahmuutxrujkkt7
2010-06-16 20:20:42 +02:00
Antony Lesuisse
a63aee23ee
improve write to many2many documentation
...
bzr revid: al@openerp.com-20100616175837-jzjkc5gy6c0on7fa
2010-06-16 19:58:37 +02:00
Anup (OpenERP)
6b90ca82c5
[IMP] removed the possible SQL injection server.
...
bzr revid: ach@tinyerp.com-20100615132722-zbua6ciz3dz43qd8
2010-06-15 18:57:22 +05:30
Fabien Pinckaers
37e218e36a
fixes
...
bzr revid: fp@tinyerp.com-20100612223530-2btlp6soybycg7nj
2010-06-13 00:35:30 +02:00
Fabien Pinckaers
fd1c8a5b83
[FIX] null properties
...
bzr revid: fp@tinyerp.com-20100612164935-b1a3hx7ron32kwxk
2010-06-12 18:49:35 +02:00
Stephane Wirtel
a315da754b
[REF] Use the collections.defaultdict object instead of an ugly code
...
bzr revid: stephane@openerp.com-20100611155317-jfer5wyiuso533se
2010-06-11 17:53:17 +02:00
Stephane Wirtel
c0494be7e9
[IMP] Add the domain support for the one2many fields
...
bzr revid: stephane@openerp.com-20100611155214-jijawj3js5o4ebtu
2010-06-11 17:52:14 +02:00
Christophe Simonis
c646a365ca
[FIX] base: handle correctly "False" values in properties
...
bzr revid: chs@openerp.com-20100610162017-96jdxc8bdf7993ya
2010-06-10 18:20:17 +02:00
Stephane Wirtel
470677d9d4
[IMP] Add the boolean support in the fields.property
...
[FIX] Use the right default value for the ir.properties
bzr revid: stephane@openerp.com-20100609112538-euqvf3lorrl3lcyo
2010-06-09 13:25:38 +02:00
Jay (Open ERP)
1450f31e8f
[REF]
...
bzr revid: jvo@tinyerp.com-20100514133802-6o3zdxze409s3lke
2010-05-14 19:08:02 +05:30
Anup (OpenERP)
f0781ecb44
[FIX] Missing imports of _ of tools.translate provided
...
bzr revid: ach@tinyerp.com-20100512104758-mkh0fe6fmlf5czdp
2010-05-12 16:17:58 +05:30
Quality Team
1a8baa044a
[IMP] Add the capabilities to store a datetime, date, integer, float and char in a field.property
...
lp bug: https://launchpad.net/bugs/562356 fixed
bzr revid: stephane@openerp.com-20100505100241-o5w0twdccrs7ppx2
2010-05-05 12:02:41 +02:00
Quality Team
6f53850e7d
[FIX] Rewrite the field.property engine to work as expected (value per
...
company)
bzr revid: stephane@openerp.com-20100504144642-piruhn25d8qyxiof
2010-05-04 16:46:42 +02:00
Rvo (Open ERP)
c9720d28f5
[IMP+ADD]:improved ir.rule code, added constraint on ir.rule for osv_memory objects
...
bzr revid: rvo@tinyerp.co.in-20100429120158-rt4p9t1o6kkj78fh
2010-04-29 17:31:58 +05:30
Framework Team
3af6db6180
[MERGE] merged trunk-dev-framework branch, including a.o diagram view improvements, access rights, bugfixes
...
bzr revid: odo@openerp.com-20100420120017-wpnt9q169cq9iztr
2010-04-20 14:00:17 +02:00
Fabien Pinckaers
e67890b3b0
[IMP] better view, no NULL value for int and float
...
bzr revid: fp@tinyerp.com-20100418200732-l2vzf71xf8tpj34r
2010-04-18 22:07:32 +02:00