Christophe Simonis
dac52e344c
[FIX] models: "ORDER BY" on many2one fields
...
When ordering results on a many2one fields, results are ordered by
order of the target model. The code was wrongly assuming that this
`_order` attribute only contains `_classic_read` fields (that can be
directly read from the table in database). Now correctly generate the
"ORDER BY" clause using the current table alias.
`res.users` can now be sorted by name.
2015-08-14 15:42:37 +02:00
Thibault Delavallée
61a2a82174
[MERGE] Merged branch holding a proposal to solve the generate_order_by issue (see lp:1070757). As requested by Olivier Donny, this fix has been moved into generate_order_by. Deleted previous workaround done in this branch. Patch courtesy of Paulius Sladkevičius
...
bzr revid: tde@openerp.com-20121207155825-9bjvuxhyr0x937l7
2012-12-07 16:58:25 +01:00
Thibault Delavallée
1ca2c45d41
[IMP] [TESTS] Cleaned and updated tests about order_by with inherits and m2o fields.
...
bzr revid: tde@openerp.com-20121207134946-h0p1em7iq80ux0js
2012-12-07 14:49:46 +01:00
Thibault Delavallée
e36b44e82f
[IMP] [WIP] order_by: now using aliases in _generate_order_by, _generate_o2m_order_by, _inherits_join_add, ... added some tests. Next comits will clean a bit the code, because currently it is a bit messy.
...
bzr revid: tde@openerp.com-20121207115424-x8gkjcqpi8dz96g2
2012-12-07 12:54:24 +01:00
Vo Minh Thu
dc3d462b9f
[IMP] test_search: comment typos.
...
bzr revid: vmt@openerp.com-20121121143159-mppc6s7rezpwc3hx
2012-11-21 15:31:59 +01:00
Quentin (OpenERP)
b4742249b4
[FIX] base: test_search, invalid use of search criterion 'active in (True, False)' replaced by 'active is True OR active is False'
...
bzr revid: qdp-launchpad@openerp.com-20121121125347-hsihsibwz0igp03r
2012-11-21 13:53:47 +01:00
Quentin (OpenERP)
d0b4d040e1
[FIX] base: fixed syntax errors and test import of test_search python test
...
bzr revid: qdp-launchpad@openerp.com-20121121122106-4mrnlw4z01np21dq
2012-11-21 13:21:06 +01:00
Quentin (OpenERP)
72014c4109
[ADD] base: added python test on the search() method
...
bzr revid: qdp-launchpad@openerp.com-20121121114557-5swzfuisp2apttd5
2012-11-21 12:45:57 +01:00