Commit Graph
938 Commits
Author SHA1 Message Date
Anup (OpenERP) c9dcc96cd9 [FIX] Support for M2O with in,not in operators corrected
bzr revid: ach@tinyerp.com-20100820102012-36dtw2m3ujn27p7q
2010-08-20 15:50:12 +05:30
Olivier Dony 4e5ab1870b [REVERT] orm/expression: reverted revision 2563 (it breaks fields.related) until we do a better fix
bzr revid: odo@openerp.com-20100818164455-nq6altxdrywwfz3i
2010-08-18 18:44:55 +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 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 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 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
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
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
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 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
Olivier Dony 846f4cab75 [IMP] expression.py: fixed typo
bzr revid: odo@openerp.com-20100805181220-djl3omx7peyvk6zg
2010-08-05 20:12:20 +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
Jay (Open ERP) 4ab96967d0 [FIX] Expression : Support for M2O with in,not in operators corrected
bzr revid: jvo@tinyerp.com-20100729123941-57q96lysmk3feskd
2010-07-29 18:09:41 +05:30
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
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 93832f58e8 fix
bzr revid: fp@tinyerp.com-20100625150340-vqz83wq7a8rfb36u
2010-06-25 17:03:40 +02:00
Fabien Pinckaers 57a6ea7761 merge
bzr revid: fp@tinyerp.com-20100625092754-hoxvok4rfbcrpah8
2010-06-25 11:27:54 +02:00
Fabien Pinckaers fd7f773827 merge
bzr revid: fp@tinyerp.com-20100625092256-na0ckfu8znn2g55p
2010-06-25 11:22:56 +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
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
Olivier Dony, Jay Vora 39e866ce70 [FIX] orm: proper recursive copy of translations through one2many relationships during copy()
lp bug: https://launchpad.net/bugs/524424 fixed

bzr revid: odo@openerp.com-20100623151439-evc74f1a3so382z0
2010-06-23 17:14:39 +02:00
Borja López Soilán (Pexego) 86b55a1b3e [MERGE] orm: port of 5.0 fix for parent_store computation when previous parent is NULL
lp bug: https://launchpad.net/bugs/581137 fixed

bzr revid: odo@openerp.com-20100622155719-a6g6udc6p2s6cp0v
2010-06-22 17:57:19 +02:00
vra 1cf10a7daa [FIX][IMP] SQL-Injection ,minor improvement.
bzr revid: vra@tinyerp.com-20100618140537-mjbviu7sxxwn83x8
2010-06-18 19:35:37 +05:30
Anup (OpenERP) e0d94956c1 [IMP] SQL injection Refactored
bzr revid: ach@tinyerp.com-20100618101641-84cdea9n1pzx36v2
2010-06-18 15:46:41 +05:30
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