Numerigraphe - Lionel Sausin
e3e8be4b01
[MERGE] merge from 6.0.0-RC1
...
bzr revid: ls@numerigraphe.fr-20101025074313-uaspq2f2y523my99
2010-10-25 09:43:13 +02:00
Olivier Dony
b7a2ebc828
[IMP] orm: _add_missing_default_values: handle o2m default values in the legacy form [{},{}] + inherited x2m defaults
...
bzr revid: odo@openerp.com-20101018161638-i6vtq13tczf2b707
2010-10-18 18:16:38 +02:00
Olivier Dony
74f144f813
[FIX] orm, workflow: do not disable wkf buttons unless explicit group is set on transitions
...
bzr revid: odo@openerp.com-20101015200655-xcn22gdoka0n4gys
2010-10-15 22:06:55 +02:00
Olivier Dony
77852d32b8
[IMP] osv,base: lint cleanup
...
bzr revid: odo@openerp.com-20101015140831-cavjcc640ardjbaz
2010-10-15 16:08:31 +02:00
Anup (OpenERP)
acf5105783
[FIX] _read_flat() method corrected for multi
...
lp bug: https://launchpad.net/bugs/625898 fixed
bzr revid: ach@tinyerp.com-20101015134630-law0exawyhlyec30
2010-10-15 19:16:30 +05:30
Anup (OpenERP)
f70f0d4520
[REVERT] A fix for orphan _inherits record for read() , better solution will be put soon.the fix may regress browse() with non-existent id
...
bzr revid: ach@tinyerp.com-20101015131902-ix4zgjjz60l8w8xd
2010-10-15 18:49:02 +05:30
Olivier Dony
88117959b5
[REM] base, workflow: removed res.roles object, replaced by dedicated res.groups
...
bzr revid: odo@openerp.com-20101013215340-jaiihef9chsym48z
2010-10-13 23:53:40 +02:00
Sébastien BEAU - http://www.akretion.com
22919bb1de
[FIX]Speed improvement : Call of write() should go when there is vals
...
bzr revid: jvo@tinyerp.com-20101012192259-w3jbfm9ocb2zkr5m
2010-10-13 00:52:59 +05:30
Olivier Dony
86c87e1a37
[ADD] osv.perm_read: added XML ID (xmlid) to returned values - naming indicates this is not a m2o.
...
bzr revid: odo@openerp.com-20101011154314-sxdfqmeoxo5f91er
2010-10-11 17:43:14 +02:00
Olivier Dony
39d514218f
[FIX] orm: backwards compatibility with python2.5
...
bzr revid: odo@openerp.com-20101006073757-exs2vdgyvg3d3m0m
2010-10-06 09:37:57 +02:00
Olivier Dony
7f30ad68d5
[FIX] orm.search: properly JOIN parent table when applying inherited ir.rules
...
bzr revid: odo@openerp.com-20101005134908-17yblagoww1orrtk
2010-10-05 15:49:08 +02:00
nch@tinyerp.com
794c319ec9
[FIX]:search_view 'groups=' attribute in the child of a field tag was never evaluted:
...
Example:
<field name='user_id' select='1'>
<filter domain='[('user_id','=',uid)]' help='My Sale Orders' icon='terp-personal' groups='base.group_extended'/>
bzr revid: nch@tinyerp.com-20101005112653-vg4qh4x5uzt0k2j5
2010-10-05 16:56:53 +05:30
Olivier Dony
d5cbc72db4
[MERGE] osv.query: Initial basic implementation of Query object for the ORM:
...
- added basic Query object to support some more complex ORM use cases (LEFT OUTER JOINS at the moment)
- added trivial unit tests for query object + run_tests.py executable to launch them
- fixed the issue with server-side sorting of m2o columns
Warning: this is very basic and was only done as a low-risk fix to introduce support for OUTER joins, as they are needed in some cases (server-side sorting of m2o columns being one)
This will need to be improved and extended a lot to be really useful -> targeted for after v6.0...
Hopefully this does not break too many things...
bzr revid: odo@openerp.com-20101001165615-0iknn3pp1ctg7q6g
2010-10-01 18:56:15 +02:00
Olivier Dony
8e317c082b
[IMP] osv.query,orm: removed trailing whitespace introduced by previous commits
...
bzr revid: odo@openerp.com-20101001165411-cid1ut6rmf7m826n
2010-10-01 18:54:11 +02:00
Olivier Dony
109f51e125
[ADD] osv: initial basic implementation of Query object:
...
- added basic Query object to support more complex ORM use cases (LEFT OUTER JOINS at the moment)
- added trivial unit tests for query object + run_test.py executable to launch them
Warning: this is very basic and was only done as a low-risk fix to introduce support for OUTER joins in some cases.
This will need to be improved and extended a lot to be really useful -> targeted for after v6.0...
bzr revid: odo@openerp.com-20100930132403-2dx0k9znzromsig7
2010-09-30 15:24:03 +02:00
Jay (OpenERP)
d631de7a68
[FIX] Import : multiple O2M import corrected
...
bzr revid: jvo@tinyerp.com-20100929120721-sptc54u3dhqr0fu1
2010-09-29 17:37:21 +05:30
Jay (OpenERP)
9338fc0c48
[FIX] Export : Corrections for exportation of relational fields
...
lp bug: https://launchpad.net/bugs/644473 fixed
bzr revid: jvo@tinyerp.com-20100927063809-9xbpi309bffmzbuo
2010-09-27 12:08:09 +05:30
nch@tinyerp.com
2d2e0b25a3
[FIX]:The records that has groupby field value = False or '' should also be returned to the client to show as 'Undefined'
...
bzr revid: nch@tinyerp.com-20100922055205-k9cu34iuzfhlvbg1
2010-09-22 11:22:05 +05:30
Xavier Morel
c47d6959b8
[REM] unneeded intermediate variable in orm.read_group
...
bzr revid: xmo@openerp.com-20100921060639-x2hu98dxa7g9dawb
2010-09-21 11:36:39 +05:30
Olivier Laurent, Olivier Dony
715ffa2db5
[IMP] orm.fields_view_get: non-xpath view inheritance should ignore field attributes but the "name"
...
bzr revid: odo@openerp.com-20100920122320-6pixw87hzpq7kwds
2010-09-20 14:23:20 +02:00
Olivier Dony
dc05c4b56d
[IMP] orm.read_group: better readability and efficiency in group sorting
...
bzr revid: odo@openerp.com-20100920090056-xczdsu1o8o8j6015
2010-09-20 11:00:56 +02:00
nch@tinyerp.com
baaf9e4490
[FIX]:default sorting in group by
...
bzr revid: nch@tinyerp.com-20100920061225-fq8943nq6upl6bn0
2010-09-20 11:42:25 +05:30
Fabien Pinckaers
825c70aeed
[IMP] Speed improvements
...
bzr revid: fp@tinyerp.com-20100918110731-0zacb01o17bd0h55
2010-09-18 13:07:31 +02:00
Olivier Dony
2c851e117b
[IMP] orm.read_group: implement simple ordering of groups
...
bzr revid: odo@openerp.com-20100917145103-sm8kfl0tk5v1dgyp
2010-09-17 16:51:03 +02:00
Olivier Dony
dcc4e7873e
[IMP] orm.search: improved support for "order" param: multiple fields, m2o fields, stored function fields, inherited fields
...
Hopefully this is stable already, otherwise do not hesitate to yell at me ;-)
bzr revid: odo@openerp.com-20100917144807-xvzhdqbk1d6izr9n
2010-09-17 16:48:07 +02:00
Olivier Dony
6eaec834d9
[IMP] orm.read_group: remove sql injection vector by forcing group_by to be valid field + assert grouped field is in the view
...
bzr revid: odo@openerp.com-20100913004840-cxnmii88bhqmnzmz
2010-09-13 02:48:40 +02:00
Mantavya Gajjar
a8f2a74385
[REVIEW]: review the currency rates
...
bzr revid: mga@tinyerp.com-20100911074535-qeyljzgh80cie1wv
2010-09-11 13:15:35 +05:30
Olivier Dony
f85fcf0355
[IMP] orm: removed partial validation of default_focus attribute in fields_view_get
...
It was not correct. and even doing it with XPath is difficult because of nested form views etc.
It is easier to have the clients gracefully handle cases where too many default_focus attributes are set instead - just taking the first one is fine
bzr revid: odo@openerp.com-20100909111905-mythkbrmc82uq59r
2010-09-09 13:19:05 +02:00
Anup (OpenERP)
245ace0a3b
[FIX] _read_flat mehthod corrected
...
bzr revid: ach@tinyerp.com-20100909110211-6sbl74zfnca0hlpf
2010-09-09 16:32:11 +05:30
Raphael Valyi
80c4054ceb
[FIX] orm: properly handle unicode values returned by ir.translation
...
lp bug: https://launchpad.net/bugs/613721 fixed
bzr revid: odo@openerp.com-20100908170257-bursdamzazhtbmas
2010-09-08 19:02:57 +02:00
Xavier Morel
a73711cb18
[IMP] logging in orm
...
* Create a schema logger at orm toplevel
* Fix logger arguments (let logging do string interpolation)
* Move orm logger to logging
bzr revid: xmo@openerp.com-20100908110250-d67l4f9kw24hsfaf
2010-09-08 13:02:50 +02:00
Jay (OpenERP)
d429b331e0
[FIX] Custom field may not be found on the first go
...
bzr revid: jvo@tinyerp.com-20100906144533-eal9zioe9ea2na73
2010-09-06 20:15:33 +05:30
Jay (OpenERP)
68dc2f322a
[FIX] read() should never return [] if fields are not empty
...
lp bug: https://launchpad.net/bugs/600533 fixed
bzr revid: jvo@tinyerp.com-20100903130945-b03ggz7hg8egymv0
2010-09-03 18:39:45 +05:30
olt@tinyerp.com
f74688a015
[IMP] orm: now detect constraint definition changes in _auto_init (lately it only detected if the constraint name had changed)
...
bzr revid: olt@tinyerp.com-20100903124635-x1pczng4lpboqsjp
2010-09-03 14:46:35 +02:00
olt@tinyerp.com
efe4e04159
[IMP] orm: added 'schema' and 'data' logger
...
[IMP] pep8
bzr revid: olt@tinyerp.com-20100903105956-b04rqcxn0tekpi9b
2010-09-03 12:59:56 +02:00
olt@tinyerp.com
827ce83b57
[FIX] missing comma in sql query 'execute' call ("select count...")
...
[FIX] removed deprecated module 'string'
[FIX] indentation errors
bzr revid: olt@tinyerp.com-20100903070330-v5gy27t7jx093tvp
2010-09-03 09:03:30 +02:00
Olivier Dony
cf56cf5d1e
[IMP] orm: moved name_search + its private implementation + name_get from orm to orm_template
...
This is more consistent and also makes name_get and name_search available for osv_memory objects.
bzr revid: odo@openerp.com-20100901164437-n03ubsu440oc9kwj
2010-09-01 18:44:37 +02:00
Olivier Dony
1f9784df87
[FIX] orm: fields_view_get selection values must properly heed ir.rules:
...
- Added private _search() method with optional uid to use when checking access rights (still using correct ir.rules)
- Corrected fields_view_get's call to name_search() to use this feature instead of hardcoding user=1 which bypasses ir.rules
bzr revid: odo@openerp.com-20100901150833-g333avwn6gqo9kqp
2010-09-01 17:08:33 +02:00
Olivier Dony
1b76981935
[IMP] orm.fields_view_get: return cached selection values even when field is not invisible
...
This solves potential issues at client-side when a refresh or on_change trigger
changes the value of the invisible field but the client does not allow it
because it is not part of the available values as far as it knows.
bzr revid: odo@openerp.com-20100901120827-kbthqdkm6qlc1ugu
2010-09-01 14:08:27 +02:00
Julien Thewys
2adff8ecf5
[MERGE] fixes the construction of a XML search string containing single quotes
...
bzr revid: jth@openerp.com-20100831121710-cwk33mcvyhcgir5g
2010-08-31 14:17:10 +02:00
Olivier Dony
1f1fcba103
[FIX,REF] orm: correct default values update during create() + refactor
...
bzr revid: odo@openerp.com-20100827092554-e16v8i4cwqobtv8a
2010-08-27 11:25:54 +02:00
Olivier Dony
502defb1a4
[FIX] orm.read_group: get correct number of return values
...
bzr revid: odo@openerp.com-20100826161517-r4tcgu4qk7onmhlf
2010-08-26 18:15:17 +02:00
Olivier Dony
0c00e6858a
[IMP] ir_translate, orm: btree indexes have size limit on large text values, implemented temporary workaround
...
bzr revid: odo@openerp.com-20100826150006-68m4gpxl9xb46bim
2010-08-26 17:00:06 +02:00
Olivier Dony
1dec419270
[IMP] orm: some improvement on previous commit on orm search with order_by (still needs fixing):
...
Avoid depending on implicit ordering of tables in a query but still allow basic sorting by inherited fields
bzr revid: odo@openerp.com-20100826114531-ajbukfsu9u3glhz5
2010-08-26 13:45:31 +02:00
Jay (OpenERP)
e3296e894b
[FIX] Server side sorting for _inherits relations corrected
...
bzr revid: jvo@tinyerp.com-20100825190431-bh3fxeu044sv8xaj
2010-08-26 00:34:31 +05:30
Olivier Dony
0125777a07
[FIX] orm: avoid replacing create() values with defaults if default_get is not correctly implemented
...
lp bug: https://launchpad.net/bugs/620714 fixed
bzr revid: odo@openerp.com-20100825175930-62uun8p016y24o2u
2010-08-25 19:59:30 +02:00
Olivier Dony
a31b0d9e0e
[REVERT] orm: reverted revision 1917 introducing split on id fields -- need to find a proper fix for caldav generated ids
...
bzr revid: odo@openerp.com-20100825175800-0vgmg3eesaw9xwdi
2010-08-25 19:58:00 +02:00
qdp-launchpad@tinyerp.com
17a9b8f502
[FIX] orm: fixed compliancy with negative numeric ids
...
bzr revid: qdp-launchpad@tinyerp.com-20100825151818-oh1tv6pe6sw75yh1
2010-08-25 17:18:18 +02:00
Olivier Dony
6d78600db0
[REF] orm.browse_record: renamed variables to improve readability of __getitem__ + minor cleanup
...
bzr revid: odo@openerp.com-20100818100955-jou6yfxcyxd9ezhh
2010-08-18 12:09:55 +02:00
Olivier Dony
42eddefd2a
[IMP/REF] orm: added support of ir.rules coming from _inherits parents
...
Also some cleanup/refactoring/doc of the computation of ir.rules and _inherits in search() and read_group()
bzr revid: odo@openerp.com-20100817183459-62do1ei8w3dpd6kz
2010-08-17 20:34:59 +02:00