On 2018-08-07 02:02, Javier Uribe wrote: > El martes, 7 de agosto de 2018, 11:00:06 (UTC+2), Cédric Krier escribió: > > On 2018-08-07 01:26, Javier Uribe wrote: > > > So, lets say for instance that we have a field moves which is a > > > Fields.function which has a method get_moves(). And I have just created a > > > record that has this field, the fields_get tells me that it is a > > > readonly. How should I fill the field moves with its value? > > > > Like any other field with the value read. > > So, can I read a field of a record that doesn't exist yet?, if that so, > that's my problem I haven't seen how to do that.
Of course, you can not read a record that does not exist. I was answering about the creation like you said in your previous message. But the default value of a readonly field is just like the default value of any field. But you must not send the value of readonly field to the server for creation. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20180807095153.i2nnna6ia2sbwrbk%40kei.