On 16 Apr 20:38, Guillem Barba Domingo wrote:
> El 16/04/2014 20:22, "Ivan Rodrigues" <[email protected]> va escriure:
> >
> >
> > Em quarta-feira, 16 de abril de 2014 14h59min22s UTC-3, Cédric Krier
> escreveu:
> >>
> >> On 16 Apr 10:29, Ivan Rodrigues wrote:
> >> > Hello,
> >> >
> >> > I added create_date field on a form.xml view and it not appears on
> screen,
> >> > only its label. Why?
> >>
> >> Because create_date is a Timestamp and the client doesn't have a widget
> >> for Timestamp.
> >>
> > And, in future, will it be possible?
> 
> If you define a DateTime field "create_date" (readonly, of course), it
> works.
> But I don't know if it is a very bad practice.

It is because you could then write on the timestamp with dropping of
microseconds and so you will break the all optimistic concurrency
control. And this even if it is readonly as the value will be detected
as changed. Better to create a function field.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpz9Bh9pgWPZ.pgp
Description: PGP signature

Reply via email to