P. Christeas
52c0c0e09e
[MERGE] orm,expression: fixed m2o handling of empty lists in domains + tests
...
lp bug: https://launchpad.net/bugs/598454 fixed
bzr revid: odo@openerp.com-20101229174223-xjljjvwqoiwgpci1
2010-12-29 18:42:23 +01:00
P. Christeas
cc64d52b33
expression: fix m2o handling of empty lists [Bug 598454]
...
The domain expressions wouldn't yield the expected results in the
following cases (eg. for res.partner):
[('company_id', 'in', [])] : should return [], not all partners
[('company_id.partner_id', 'in', [])] : again, empty set
After some deliberation and discussion, we *change the behavior* for them.
Notes:
1. This comes after commit 913e95856f80, bug 626806 which solved the
corresponding cases for m2m, o2m
2. This commit _will_ have side-effects. The result set for domains now
is indeed different. But, we believe, now it is the proper one, fixes
cases of unexpected results that have been reported
3. It makes the server a bit faster, because empty results are quick to
compute
4. The "not in []" operator will NOT return results with NULL values in
the corresponding field (aka. empty). This may not be the one expected
by users, but it follows the SQL standard (par. 9.20.3):
http://www.postgresql.org/docs/9.0/static/functions-subquery.html
bzr revid: p_christ@hol.gr-20101223112938-ore0dmmasekdcyfn
2010-12-23 13:29:38 +02:00
P. Christeas
12f5aa0a18
expression: fix "m2o, m2m in []" expressions, bug 626806
...
After some discussions, we decided that the desired behavior of the
ORM for one2many and many2many fields should be:
(foobar_id,'in', []) => empty result, because the list is empty
(foobar_id,'in',False) => find records that don't have a foobar
bzr revid: p_christ@hol.gr-20101129183413-yi1jzdwr1tis7d8t
2010-11-29 20:34:13 +02:00
Olivier Dony
2c5035fe44
[FIX] orm: function/related fields with store != None should always use db-based search, regardless of fnct_search
...
This reverts commit jvo@tinyerp.com-20100202150454-x9kne83yzkjciidw (1950) from v5
and it port to v6 with commit jvo@tinyerp.com-20100202150454-x9kne83yzkjciidw (1844.4.90)
lp bug: https://launchpad.net/bugs/693339 fixed
bzr revid: odo@openerp.com-20101223150253-zumk5entx9heb8q0
2010-12-23 16:02:53 +01:00
Jay (OpenERP)
9186fb8144
[FIX] Search on property field should not crash,it should go for fnct_search() instead (normal fields.function flow)
...
lp bug: https://launchpad.net/bugs/634607 fixed
bzr revid: jvo@tinyerp.com-20101029203937-ecpovii0zfpwgsdw
2010-10-30 02:09:37 +05:30
Anup,Jay
40ed04d094
[FIX] Expression : Corrected operator handling for domains containing Many2one fields
...
lp bug: https://launchpad.net/bugs/651999 fixed
bzr revid: jvo@tinyerp.com-20101006180432-mkaqstcuvakci7hq
2010-10-06 23:34:32 +05:30
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
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
846f4cab75
[IMP] expression.py: fixed typo
...
bzr revid: odo@openerp.com-20100805181220-djl3omx7peyvk6zg
2010-08-05 20:12:20 +02:00
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
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
Anup (OpenERP)
e0d94956c1
[IMP] SQL injection Refactored
...
bzr revid: ach@tinyerp.com-20100618101641-84cdea9n1pzx36v2
2010-06-18 15:46:41 +05:30
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
Christophe Simonis
4bd5550e21
[FIX] Fixed sql generation bug when the domain ranges on the grandparent's fields of an "inherits" hierarchy.
...
bzr revid: jth@openerp.com-20100531150517-6q2u5ou30lfe2lqt
2010-05-31 17:05:17 +02:00
Anup (OpenERP)
2205170823
[FIX]Expression.py corrected when M2O search returns no IDs
...
bzr revid: ach@tinyerp.com-20100512112620-yrralz7xovn0uxee
2010-05-12 16:56:20 +05:30
HDA (OpenERP)
a0ba43d800
Merged with stable
...
bzr revid: hda@tinyerp.com-20100216063114-d2crv3zayarq2vk6
2010-02-16 12:01:14 +05:30
Jay (Open ERP)
9148fc2662
[FIX] Search made working for function/related fields with store=True/{...} or fnct_search=method
...
bzr revid: jvo@tinyerp.com-20100202150454-x9kne83yzkjciidw
2010-02-02 20:34:54 +05:30
Jay (Open ERP)
915f5b6db7
[FIX] Expression : Domain calculation of M2M/O2M corrected
...
lp bug: https://launchpad.net/bugs/509629 fixed
bzr revid: jvo@tinyerp.com-20100119140405-4qw4ovyyhcfqhytl
2010-01-19 19:34:05 +05:30
HDA (OpenERP)
8a887ad4e0
Merged
...
bzr revid: hda@tinyerp.com-20100112104830-x35l4g08og2gacwo
2010-01-12 16:18:30 +05:30
Jay (Open ERP)
91a867f9de
Domain evaluation : Conditions like [(field,'in',[])],[(field,'not in',[])] considered
...
lp bug: https://launchpad.net/bugs/504584 fixed
bzr revid: jvo@tinyerp.com-20100108081408-rtkmra85ckasboob
2010-01-08 13:44:08 +05:30
Jay (Open ERP)
3a6fa4870d
[FIX] Search : searching translated fields made possible(related,one2many,many2many)
...
lp bug: https://launchpad.net/bugs/503278 fixed
bzr revid: jvo@tinyerp.com-20100105120339-qdmw9xfkvcr09x0e
2010-01-05 17:33:39 +05:30
Fabien Pinckaers
cb32d72dfa
[FIX] rule and multi-company
...
bzr revid: fp@tinyerp.com-20091222205600-3h0fow08pndm7y0f
2009-12-22 21:56:00 +01:00
Fabien Pinckaers
eb665f6e1d
[FIX] improve multi-company and rule system
...
bzr revid: fp@tinyerp.com-20091222190158-lwknqi2vcgj1e94d
2009-12-22 20:01:58 +01:00
Jay (Open ERP)
8973681ae1
[FIX] Expression : _recursive_in corrected
...
bzr revid: jvo@tinyerp.com-20091204085819-hdx3k0gdxf4j4qcf
2009-12-04 14:28:19 +05:30
Harry (Open ERP)
3ac7d15820
[merge] merge from lp:~openerp/openobject-server/5.0/
...
bzr revid: hmo@tinyerp.com-20091128104436-nryf42nmutq0s2ig
2009-11-28 16:14:36 +05:30
ACH(OpenERP)
360d52e45b
[FIX] Expression : Making search easier for 'child_of'- Recursivity on field used as a Left operand
...
bzr revid: jvo@tinyerp.com-20091123122736-591bz55oke4ot5mj
2009-11-23 17:57:36 +05:30
Harry (Open ERP)
dda5ed6bb1
[REVERT] expression: ANY is not work well in sql query. It is raised exception.so changes in query is reverted
...
bzr revid: hmo@tinyerp.com-20091123071558-sea2rhnfmkr9ag71
2009-11-23 12:45:58 +05:30
xrg
dad1ff955b
[merge] merge from lp:~xrg/openobject-server/optimize-5.0 and removed some confilts
...
bzr revid: hmo@tinyerp.com-20091120143104-tb6136unkdw7yfy9
2009-11-20 20:01:04 +05:30
Harry (Open ERP)
c436917517
[Merge] merge stable/5.0 branch
...
bzr revid: hmo@tinyerp.com-20091104064434-fijc4n2motwgsu13
2009-11-04 12:14:34 +05:30
P. Christeas
5ee5a1caef
Merge remote branch 'origin/master' into optimize
...
Conflicts:
bin/osv/expression.py
bin/osv/orm.py
bzr revid: p_christ@hol.gr-20091026105650-49wvuk3o7qw1ybkn
2009-10-26 12:56:50 +02:00
Jay (Open ERP)
da2e99051a
[FIX] Expression : domain calculation failes, max. recursion error protected
...
bzr revid: jvo@tinyerp.com-20091022143641-l5b4jbk0spce8b1t
2009-10-22 20:06:41 +05:30
pap(openerp)
251b6720ca
Changed encoding to coding ref: PEP: 0263
...
bzr revid: hda@tinyerp.com-20091020105223-2o94yr2iv2v10axr
2009-10-20 16:22:23 +05:30
Fabien Pinckaers
012fd8d624
[FIX] recursive calls
...
bzr revid: fp@tinyerp.com-20091019182609-bkowmclnyfon4jeo
2009-10-19 20:26:09 +02:00
Fabien Pinckaers
3a3ea98257
[FIX] recursive child_of on one2many and many2many
...
bzr revid: fp@tinyerp.com-20091019181633-8szl9k4nlp9mmr1p
2009-10-19 20:16:33 +02:00
PSO(OpenERP)
4d7134cd99
Changed licencing
...
bzr revid: hda@tinyerp.com-20091014123215-nuyqs18090whzt5o
2009-10-14 18:02:15 +05:30
HDA (OpenERP)
c6f5c91a96
Merged with stable
...
bzr revid: hda@tinyerp.com-20091009095236-2m1dt7sz4mr6iw0e
2009-10-09 15:22:36 +05:30
P. Christeas
5ad6ee5223
[Imp] Allow expressions: ".. child_of, 1" , not only list(1)
...
bzr revid: p_christ@hol.gr-20091008195856-iyhz4abq51p871ip
2009-10-08 22:58:56 +03:00
Jay (Open ERP)
90d81da72b
[FIX] Domain was getting failed when trying to work upon M2M,O2M field of object
...
lp bug: https://launchpad.net/bugs/420507 fixed
bzr revid: jvo@tinyerp.com-20091008075335-obo9xs9usni3ey4n
2009-10-08 13:23:35 +05:30
HDA (OpenERP)
c68600cc53
[Merged]
...
bzr revid: hda@tinyerp.com-20090917072712-l7220bbv1gq4uckc
2009-09-17 12:57:12 +05:30
P. Christeas
0b5b67b336
Fix quoting of ids when passed to sql.
...
bzr revid: p_christ@hol.gr-20090903073240-cyydggro48990k2s
2009-09-03 10:32:40 +03:00
P. Christeas
8cbe393b52
Merge commit 'origin/master' into xrg (5.0.3 official)
...
Conflicts:
bin/netsvc.py
bin/tools/config.py
bin/workflow/instance.py
bzr revid: p_christ@hol.gr-20090823100210-2py390qp3hym8jlp
2009-08-23 13:02:10 +03:00
Jay (Open ERP)
e036492669
[RECOMMIT] Recommitting the patch for multilevel _inherits search support
...
lp bug: https://launchpad.net/bugs/362280 fixed
bzr revid: jvo@tinyerp.com-20090818134445-d7dxaaqlh34oiypz
2009-08-18 19:14:45 +05:30
husen daudi
076c4f13d6
Revert bad commit
...
bzr revid: hda@hda-20090812130626-zw5ryz7iu6lht4mi
2009-08-12 18:36:26 +05:30
husen daudi
2ed2e2a0a6
[FIX] _inherits search behaviour
...
bzr revid: hda@hda-20090812085832-xpcypi8s7iaqguu7
2009-08-12 14:28:32 +05:30
Jay (Open ERP)
b80f78ac60
[FIX] _inherits was misbehaving on search
...
lp bug: https://launchpad.net/bugs/362280 fixed
bzr revid: jvo@tinyerp.com-20090811091614-nqfhqqtsi6hbxkpc
2009-08-11 14:46:14 +05:30
P. Christeas
c3e569fb08
Merge commit 'origin/master' into xrg
...
Conflicts:
bin/netsvc.py
bin/report/report_sxw.py
setup.py
bzr revid: p_christ@hol.gr-20090803072357-zz2cm1sycsagftnn
2009-08-03 10:23:57 +03:00
AME(Tiny/Axelor)
06460f8bf5
[FIX] Expression calculation for Datetime Corrected
...
lp bug: https://launchpad.net/bugs/405921 fixed
bzr revid: jvo@tinyerp.com-20090730085145-mqd5phn8ynyxvt4l
2009-07-30 14:21:45 +05:30
Jay (Open ERP)
fb82bec351
[FIX] Corrected bug of expression calculation in previous commit
...
bzr revid: jvo@tinyerp.com-20090727072751-kk735cvem4vrx3wg
2009-07-27 12:57:51 +05:30