On 02/09/13 09:24 -0700, Martín Guzmán wrote:
> 
> 
> > > If you can't, how can I update a field each time a view is refreshed? 
> >
> > You can not but could you elaborate on why you want to do this. 
> >
> >
> I created a field function that calculates the priority of buying a product 
> according to the needs of my company. What I'm trying to do is create 
> domains in the views (action.act_window.domain) to facilitate finding the 
> products according to this priority. As the field is a function field, I 
> can not use it directly in the domain. So I'm trying to update a field 
> every time the function field is updated. I dont know if there is another 
> way I can do this...

Define a searcher on the Function field:
http://doc.tryton.org/2.8/trytond/doc/ref/models/fields.html?highlight=searcher#trytond.model.fields.Function.searcher

-- 
Cédric Krier

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

Attachment: pgpJwsEHEgtVp.pgp
Description: PGP signature

Reply via email to