[tryton] Issues when writing one2one relationship

2016-05-24 Thread Pedro Moretto Rodriguez
Hello I am trying to get a one2one relationship to work. Here are my classes: *class Formulario*(ModelSQL,ModelView): 'Formulario' _name = 'cefiro.formulario' _description = __doc__ formVivTrabajo =

Re: [tryton] Default value related to the latest data entered ...

2016-05-24 Thread Cédric Krier
On 2016-05-24 08:01, Maxime Richez wrote: > > > > > > I think in this case, it is better to define a default one on the parent > > and use the on_change like @pokoli said to change the default value to > > this default defined on the parent. > > > > > > I follow your advice but how to

Re: [tryton] Default value related to the latest data entered ...

2016-05-24 Thread Sergi Almacellas Abellana
On 24 maig de 2016 17:01:00 CEST, Maxime Richez wrote: > > >> >> I think in this case, it is better to define a default one on the >parent >> and use the on_change like @pokoli said to change the default value >to >> this default defined on the parent. >> >> > >I

Re: [tryton] Default value related to the latest data entered ...

2016-05-24 Thread Maxime Richez
> > I think in this case, it is better to define a default one on the parent > and use the on_change like @pokoli said to change the default value to > this default defined on the parent. > > I follow your advice but how to force the "on_change_with" be executed and set the default value