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:
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'
_column. __init_ _(self, **args)
self. _method = method
--- 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):
self._obj = obj
>
> IMHO it needs a popup to inform the user if sort is problematic
-- www.NaN- tic.com
Albert Cervera i Areny
http://
Mòbil: +34 669 40 40 18