On 30/08/13 00:39 -0700, Martín Guzmán wrote:
> Hi all! I'm trying to change the value of a field inside a Function field 
> getter. When I tried to call the write method I get this: "InternalError: 
> cannot execute UPDATE in a read-only transaction". Is there a way to do 
> it?

You could change every read calls from readonly to not-readonly:

    
http://doc.tryton.org/2.8/trytond/doc/ref/models/models.html?highlight=rpc#trytond.model.Model.__rpc__

But I hardly descourage you to do so because it will break the design of
Tryton.

> 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.

-- 
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: pgp_C9146R3Wk.pgp
Description: PGP signature

Reply via email to