On 05/09/13 13:08 +0200, Sergi Almacellas Abellana wrote:
> Hi devs,
> 
> Just discovered that there is a cache on function fields. I would like
> to know if there is some way to disable this cache.
> 
> My use case is the following:
> 
> - I get the function field with a context that filters the values.
> - In the same transaction I want get the same function field with
> diferent context values.
> 
> Of course values from the function field are diferent (as context
> filters are diferent), but i always get the value of the first context
> on the consecutives calls.
> 
> Any tips are apreciated.

You must re-instanciate the records to get the new context because
instance carries a copy of the current context at the instanciation
moment.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/

Attachment: pgp72pnNYP9QX.pgp
Description: PGP signature

Reply via email to