Commit Graph

32 Commits

Author SHA1 Message Date
Olivier Dony 7d3d3a6aba [FIX] fields.function: type=binary: workaround for the low byte values (<=0x1f) unsupported in XML
We have a workaround in place for fields.function of binary type
that may return values that are invalid in XML documents, and thus
in our XML-RPC protocol. But out workaround failed to care for the
invalid XML codepoints (below 0x1f) that are well valid in UTF-8
encoding.
Added a sanity check for that as well, using a terrible workaround
for this last resort case: b64-encode the bytes, to avoid crashing
the request.

bzr revid: odo@openerp.com-20110906173140-vc4tl6wstzt8h06o
2011-09-06 19:31:40 +02:00
Xavier Morel b5a429d008 [FIX] fnct_inv in client actions params, fix docstring for fnct_inv (fnct_inv only takes a single record id, not a sequence of ids)
bzr revid: xmo@openerp.com-20110825123049-bmvebm86gqgr6w43
2011-08-25 14:30:49 +02:00
Olivier Dony 8ac7724a67 [IMP] fields.function: don't wrap int values unless really needed
There was no need to wrap/cast int values for values less
than 2^31-1, which the highest XML-RPC int value.
Also, instead of wrapping them in strings, we can use
float values, which are 64bits based in the XMLRPC standard,
and closer to the real value (for comparisons, etc.).
Added note for integer_big, as a reminder of this possible
issue.

bzr revid: qdp-launchpad@openerp.com-20110818120550-ulvffm6ka9f3c5ym
2011-08-18 14:05:50 +02:00
Vo Minh Thu 1f6833e708 [IMP] fields.py: removed unused import (and cyclic dependency!).
bzr revid: vmt@openerp.com-20110712083711-6serbntp8y5fn3qy
2011-07-12 10:37:11 +02:00
Vo Minh Thu cadfd7d85f [FIX] fields.property: typos/misnamed variables.
bzr revid: vmt@openerp.com-20110711161558-kac442kzcu3ujvj4
2011-07-11 18:15:58 +02:00
Vo Minh Thu e3725cb3a6 [FIX] fields.property: set the m2o fields as False instead of browse_null.
bzr revid: vmt@openerp.com-20110711142503-pokzph1wgo2j3223
2011-07-11 16:25:03 +02:00
Vo Minh Thu 5265ceeffc [IMP] fields.py: removed unnecessary initialization.
bzr revid: vmt@openerp.com-20110711131804-1p9qk2j9zp2uuevy
2011-07-11 15:18:04 +02:00
Vo Minh Thu 2fe91df6ad [IMP] fields.py: tidying up before merging in trunk.
bzr revid: vmt@openerp.com-20110711123414-5nf29awpui5x0pp6
2011-07-11 14:34:14 +02:00
Quentin (OpenERP) b363bfb392 [FIX] openerp/osv/fields.py: _get_defaults() and _fnct_read() of property fields cleaned and fixed as requested on merge proposal
-_get_defaults(): improved docstring in order to follow RST docstring format
-_get_defaults(): removed weird loop in _get_defaults as there is always 1 element only
-_fnct_read(): make name_get as root
-_fnct_read(): check existence for m2o fields (as root)
-_fnct_read(): check for type of property field is now done on reliable information

bzr revid: qdp-launchpad@openerp.com-20110708125106-0q0wj5zncaa7yp0w
2011-07-08 14:51:06 +02:00
Quentin (OpenERP) 760471863a [FIX] fields.py: reading and writing on ir.property fields
bzr revid: qdp-launchpad@openerp.com-20110707140359-mxj1or10gzvde3te
2011-07-07 16:03:59 +02:00
Quentin (OpenERP) 1e57f21cb7 [IMP] openerp/osv/fields.py: reading a property field is now using the function get() of ir.property object.
bzr revid: qdp-launchpad@openerp.com-20110707133733-aua4dygdjjmhryap
2011-07-07 15:37:33 +02:00
niv-openerp f7851b64ae [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110705085322-9maq2605k6dvnfho
2011-07-05 10:53:22 +02:00
niv-openerp 708855467f [imp] changed meaning of operation 3 on o2m to behave like operation 5
bzr revid: nicolas.vanhoren@openerp.com-20110705085106-xepnebw12sbq8s9b
2011-07-05 10:51:06 +02:00
Olivier Dony ce0d89e7e7 [IMP] fields.function: removed method=True param, added docstring
The 'method' param was quite useless, as 100% of functions
fields were using method=True. In addition, there is no need
to distinguish methods and functions, as methods are unbound
and passed as function objects in the declaration of a function
field, so they only need a proper signature.
Finally, docstring was added for fields.function class,
based on current doc from developer book (in preparation of
future API doc).
(A fix in addons follows, getting rid of all the useless
method=True params there too).

bzr revid: odo@openerp.com-20110701232328-flgxulxva70vnyxr
2011-07-02 01:23:28 +02:00
P. Christeas 7c8665bb69 [MERGE] docstrings improvements and preparation for api-doc structure
bzr revid: odo@openerp.com-20110701231956-93zu7xtibpo06eqm
2011-07-02 01:19:56 +02:00
niv-openerp 4dcc76071e [imp] small bug in o2m 5 improvement
bzr revid: nicolas.vanhoren@openerp.com-20110630100404-5tkdsafuf9ju4xcw
2011-06-30 12:04:04 +02:00
niv-openerp 350de710c4 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110630100025-fdjv3f9rsa10u47d
2011-06-30 12:00:25 +02:00
niv-openerp fa19ca6e47 [imp] modified meaning of operation 5 on o2m to delete the pointed rows if on delete cascade
bzr revid: nicolas.vanhoren@openerp.com-20110629162746-dn0tosycss4a0cne
2011-06-29 18:27:46 +02:00
Vo Minh Thu 027d082936 [MERGE] some refactoring in fields_view_get.
bzr revid: vmt@openerp.com-20110627132601-qw6ejx2v4xywq4ai
2011-06-27 15:26:01 +02:00
Vo Minh Thu 82a3dca2d7 [FIX] fields: pass around the context in the create case of the many2many (thankks to rco).
bzr revid: vmt@openerp.com-20110624140103-z7t3c029mc4uq5wu
2011-06-24 16:01:03 +02:00
P. Christeas b0f06f7e52 orm, tools, addons: Doc strings improvements
bzr revid: xrg@linux.gr-20110623090228-4gn6xoyykcvfhv13
2011-06-23 12:02:28 +03:00
Vo Minh Thu f3b7293c2e [REF] orm: add a column_info class to represent entries in _inherit_fields,
code comes from the trunk-sharing-features branch (by odo).

bzr revid: vmt@openerp.com-20110621155342-8a3o153rkpsd5s12
2011-06-21 17:53:42 +02:00
Olivier Dony 66b4f6fbcd [FIX] fields: function/property fields should perform their name_get() calls for m2o as uid 1
This is because the permissions for reading the display name
of a m2o record does not depend on access to the target table,
but depends on the user access to the current table.
Users that are denied read access to the target table may still
see the names of the records linked to the documents they can
read

bzr revid: odo@openerp.com-20110619171102-sh0derdj50epea7b
2011-06-19 19:11:02 +02:00
Vo Minh Thu ccca7e938a [REF] orm: fields_get in pieces, now with docstring.
bzr revid: vmt@openerp.com-20110617072608-5tmwf2g2qb0pwrhk
2011-06-17 09:26:08 +02:00
Vo Minh Thu e4d8e91c4a [MERGE] `multi` support for function fields.
bzr revid: vmt@openerp.com-20110615152659-1g2s5vc3outecd71
2011-06-15 17:26:59 +02:00
Yogesh (OpenERP) 45e8ba8474 [IMP] improve code.
bzr revid: ysa@tinyerp.com-20110615102551-np3mfev3eq5z4iwp
2011-06-15 15:55:51 +05:30
Yogesh (OpenERP) 2f635092d2 Improve code.
bzr revid: ysa@tinyerp.com-20110615084717-ya7v52ngikwn4zy8
2011-06-15 14:17:17 +05:30
Yogesh (OpenERP) a0eba446d9 [IMP] improve get method of function field.
bzr revid: ysa@tinyerp.com-20110613111949-u71pez6qpdfwk1iy
2011-06-13 16:49:49 +05:30
Vo Minh Thu 823abab958 [MERGE] merged changes from 6.0
bzr revid: vmt@openerp.com-20110525151149-78gkoolppmjekrl6
2011-05-25 17:11:49 +02:00
Yogesh (OpenERP) 1fc19ec86c [FIX] fields.function work in multi mode for binary type. return field name with size on multi mode in get_nice_size method.
bzr revid: ysa@tinyerp.com-20110523090113-tryh2f1c760sf8er
2011-05-23 14:31:13 +05:30
Olivier Dony ad2967d350 [MERGE] merged fix for osm_memory.read() of m2o fields with name - pending addons fix
bzr revid: odo@openerp.com-20110315132628-uhhpf95b9iyin482
2011-03-15 14:26:28 +01:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00