Merge lp://qastaging/~florent.x/openobject-server/6.1-fallback-search-sort into lp://qastaging/openobject-server/6.1

Proposed by Florent
Status: Needs review
Proposed branch: lp://qastaging/~florent.x/openobject-server/6.1-fallback-search-sort
Merge into: lp://qastaging/openobject-server/6.1
Diff against target: 348 lines (+237/-11)
2 files modified
openerp/osv/expression.py (+110/-4)
openerp/osv/orm.py (+127/-7)
To merge this branch: bzr merge lp://qastaging/~florent.x/openobject-server/6.1-fallback-search-sort
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+124963@code.qastaging.launchpad.net

Description of the change

I have adapted the code for 6.1.
It is adapted from the work done by XRG and published in the C2C branch for 6.0

You need to add these lines in "openerp-server.conf" to trigger this behavior:

[orm]
fallback_search = True

(Or add an attribute `_fallback_search = True` on some Models)

It works smoothly without visible drawbacks.

To post a comment you must log in.
4276. By Florent

[FIX] oversight in previous patch.

4277. By Florent

[FIX] don't pass a keyword argument user= to the _column.get method because the argument is sometimes 'uid'.

Unmerged revisions

4277. By Florent

[FIX] don't pass a keyword argument user= to the _column.get method because the argument is sometimes 'uid'.

4276. By Florent

[FIX] oversight in previous patch.

4275. By Florent

[IMP] fallback search support, adapted from xrg.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.