Comment 14 for bug 394711

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote : Re: [Bug 394711] Re: can not sort columns

A Dissabte, 1 d'agost de 2009, Ferdinand @ ChriCar va escriure:
> Yes - I can set store=True for "my" apps , but not for all OpenERP

As I said, it be great if OpenERP provided a means to set store=True, when
it's False, that would solve the problem. Meanwhile, this trivial patch should
do:

=== modified file 'bin/osv/fields.py'
--- bin/osv/fields.py 2009-04-27 18:17:01 +0000
+++ bin/osv/fields.py 2009-08-01 11:42:29 +0000
@@ -588,7 +588,7 @@
 #
 # multi: compute several fields in one call
 #
- def __init__(self, fnct, arg=None, fnct_inv=None, fnct_inv_arg=None,
type='float', fnct_search=None, obj=None, method=False, store=False,
multi=False, **args):
+ def __init__(self, fnct, arg=None, fnct_inv=None, fnct_inv_arg=None,
type='float', fnct_search=None, obj=None, method=False, store=True,
multi=False, **args):
         _column.__init__(self, **args)
         self._obj = obj
         self._method = method

>
> IMHO it needs a popup to inform the user if sort is problematic

--
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18