On 2016-05-23 04:32, Maxime Richez wrote:
> >
> > If it is stored in the database, then you can make a query to find the 
> > last entered.  But this works only if it is stored in the database so 
> > not for One2Many list. 
> >
> 
>    And in my case it's a One2Many :(
> 
> >
> >
> >
> > For the One2Many case, it is usually better to not store default value 
> > on the line but one at the parent. 
> >
> >
> > Effectively it's the best solution to store at the parent, but in our case 
> whe need the value on the lines (because at the next step of the module, we 
> are working on the lines ...)

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.

-- 
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/20160523114955.GX13326%40tetsuo.

Reply via email to