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
Olivier Dony
d74468b303
[FIX] default_get: fixed RST indentation in docstring
...
bzr revid: odo@openerp.com-20100817100233-0ayry3c8miphj3pp
2010-08-17 12:02:33 +02:00
Olivier Dony
d254f16664
[FIX] orm.default_get: fix invalid renaming by broken PyDev refactor
...
bzr revid: odo@openerp.com-20100813153839-wp7tbf6rzo0zlj7u
2010-08-13 17:38:39 +02:00
Olivier Dony
58cdeffed9
[REF] orm.default_get: merge duplicated default_get() up into orm_template.
...
Removes a lot of duplicated code and rationalize the behaviour, as orm_memory should have the same features as regular orm (inheritance, properties etc.
Note: removed *on purpose* the code from revision qdp-launchpad@tinyerp.com-20100628120010-kk2b7v94om0kpam1 that gave incorrect default values for orm_memory objects. It should not be needed anyway.
bzr revid: odo@openerp.com-20100813150955-7a3vqj9iywb3706s
2010-08-13 17:09:55 +02:00
Olivier Dony
57191c139d
[IMP] orm/inherits: check that m2o fields implementing _inherits are marked required with ondelete cascade
...
Fix the issue if one is detected, either adding the missing field or forcing the attributes
bzr revid: odo@openerp.com-20100812200848-l8q72d44237gn5uk
2010-08-12 22:08:48 +02:00
Olivier Dony
fe313162b6
[FIX] orm/_inherits: don't fail when trying to sort by inherited fields that are not stored - just ignore
...
Also properly used _classic_read instead of _classic_write to check whether a field is stored.
bzr revid: odo@openerp.com-20100812155918-c96q8w730cs5w1zp
2010-08-12 17:59:18 +02:00
Jay (OpenERP)
195861f4a2
[REF]
...
bzr revid: jvo@tinyerp.com-20100812174818-5hreta49f4mz03oo
2010-08-12 23:18:18 +05:30
Olivier Dony
497518057d
[FIX] orm: fix search() with sorting by inherited field
...
Also did some cleanup and renaming of variables for readability.
bzr revid: odo@openerp.com-20100809125917-44a48fef7jn081x3
2010-08-09 14:59:17 +02:00
Olivier Ligot
54b19dc008
[FIX] XML search string containing single quotes
...
bzr revid: olivier.ligot@groupes.be-20100806095304-yu7gkygfvenwpqy0
2010-08-06 11:53:04 +02:00
Olivier Dony
5fe9188615
[FIX] osv_memory: fixed access rights for osv_memory: a user always has full access, but only to her own records, except the superuser
...
bzr revid: odo@openerp.com-20100805181458-gaq8f8rbp0xwyoy9
2010-08-05 20:14:58 +02:00
Julien Thewys
6eff548f0b
[FIX] Fixed previous fix: where clause might be empty.
...
bzr revid: jth@openerp.com-20100804155117-gazy6gibbyk01wqz
2010-08-04 17:51:17 +02:00
Julien Thewys
b6823a7378
[FIX] Where clause with one element was not properly serialized.
...
Guideline: please don't modify the type of a variable within its scope, create a new variable instead.
bzr revid: jth@openerp.com-20100804153707-9wolx4of6ymjl5pq
2010-08-04 17:37:07 +02:00
Olivier Dony
f682ecd4f9
[IMP] orm: docstring improvements: fixed incorrect RST indentation + improved doc a bit + some cleanup
...
bzr revid: odo@openerp.com-20100803173825-eixbk1sp2d78i4g8
2010-08-03 19:38:25 +02:00
Jay (Open ERP)
b29d4306c0
[FIX] Previous commit corrected
...
bzr revid: jvo@tinyerp.com-20100729173958-4eoucw31qitl3lxw
2010-07-29 23:09:58 +05:30
Jay (Open ERP)
a828eea725
[FIX] Sorting : Server side sorting should allow fields of _inherits
...
lp bug: https://launchpad.net/bugs/603900 fixed
bzr revid: jvo@tinyerp.com-20100729130451-wie19hlk21ltfxu4
2010-07-29 18:34:51 +05:30
nch@tinyerp.com
5023186293
[FIX]:*_view_ref should execute only if there is no view_id provided
...
bzr revid: nch@tinyerp.com-20100721133727-6kmwn65grzjrc4ig
2010-07-21 19:07:27 +05:30
Jay (Open ERP)
51ebb43210
[FIX] ORM.read() : property of type binary should not crash due to quotes
...
bzr revid: jvo@tinyerp.com-20100714192056-q1ygezb8c7gna2dh
2010-07-15 00:50:56 +05:30
Olivier Dony
472693f703
[IMP] orm.read(): properly support ir.rules using fields inherited from _inherits + cleanup
...
bzr revid: odo@openerp.com-20100713131631-w1dvsbcm8a78d5dc
2010-07-13 15:16:31 +02:00
Olivier Dony
a967c6e21f
[IMP] orm.fields_get: renamed read_access parameter to write_access, reflecting its real usage. Also cleaned up some mess leftover by commit 1338 in orm.field_get_keys() + other cleanup
...
bzr revid: odo@openerp.com-20100712141513-akwx4gcujoboia1y
2010-07-12 16:15:13 +02:00
nch@tinyerp.com
e80e8d7d3c
[IMP]:Object Information, on tooltip should be visible if client started in debug mode.
...
it should display:
* char - size, name
* one2many - related object and field name
* any2many - related object, 3rd table, and both related columns
* many2one - related object
* function - Store, type, callable function (search, compute)
* etc...
bzr revid: nch@tinyerp.com-20100708133153-g1fbn3idev3tkx4b
2010-07-08 19:01:53 +05:30
Fabien Pinckaers
b9f86b3de2
[IMP] removed price_accuracy options
...
bzr revid: fp@tinyerp.com-20100704125727-nywaqszkgyft233z
2010-07-04 14:57:27 +02:00
Olivier Dony
594338f9df
[FIX] osv_memory: vaccuum as superuser
...
bzr revid: odo@openerp.com-20100702165328-aywvyubsu6pczf75
2010-07-02 18:53:28 +02:00
nch@tinyerp.com
506cd4a2af
[FIX]:<type 'exceptions.TypeError'>:cannot marshal None unless allow_none is enabled
...
bzr revid: nch@tinyerp.com-20100629060033-5sqy9a2bximjofdz
2010-06-29 11:30:33 +05:30
Fabien Pinckaers
5e17f915dd
[IMP] automated migration
...
bzr revid: fp@tinyerp.com-20100628175637-2ymrhowinjyqql0e
2010-06-28 19:56:37 +02:00
Fabien Pinckaers
992d24a69e
fix
...
bzr revid: fp@tinyerp.com-20100628162627-eqekwvhu8234kl4i
2010-06-28 18:26:27 +02:00
qdp-launchpad@tinyerp.com
c4da7a2c7c
[FIX] osv_memory objects have to receive a default value for each existing field, not only the ones that are not readonly
...
bzr revid: qdp-launchpad@tinyerp.com-20100628120010-kk2b7v94om0kpam1
2010-06-28 14:00:10 +02:00
nch@tinyerp.com
7f3254ab27
[FIX]:groupby many2one passed tuple(ID,value) instead of value
...
bzr revid: nch@tinyerp.com-20100628061425-qcbithsh53kjwgfd
2010-06-28 11:44:25 +05:30
Fabien Pinckaers
9584b1b468
[FIX] ir_rule
...
bzr revid: fp@tinyerp.com-20100625210850-wv0gf7alwc8b1yqz
2010-06-25 23:08:50 +02:00
Fabien Pinckaers
fd7f773827
merge
...
bzr revid: fp@tinyerp.com-20100625092256-na0ckfu8znn2g55p
2010-06-25 11:22:56 +02:00
Olivier Dony
09297baccf
[IMP] osv_memory: disabled regular ir_model_access access rights and switched to per-user access only. also did some cleanup
...
bzr revid: odo@openerp.com-20100624155602-noiat5i91uyeyy5t
2010-06-24 17:56:02 +02:00
vra
7ed648ce88
[MERGE] merge the changes from main trunk branch.
...
bzr revid: vra@tinyerp.com-20100624084539-ne1e1tscqn1z3jw5
bzr revid: vra@tinyerp.com-20100624084650-svala4jb0dnf7aal
2010-06-24 14:16:50 +05:30
Olivier Dony
77264e3ba7
[FIX] orm: correct computation of parent_store for specific cases with duplicate/copy()
...
bzr revid: odo@openerp.com-20100623151535-hsqhjzmkgrr1q87t
2010-06-23 17:15:35 +02:00