2008/11/24 Albert Cervera i Areny <[EMAIL PROTECTED]>

> A Dilluns 24 Novembre 2008, [EMAIL PROTECTED] va escriure:
> > Read
> >
> http://openerp.com/wiki/index.php/Developers:Developper%27s_Book/Objects/Ob
> >jectsDefine/ObjectsFields, but could not find how to set the default value
> > of a field.
>
> Search for '_defaults' property in the source code. The idea is similar
> to '_columns'.


    _defaults =
{
        'yourfield' : lambda *a: herevalue,
    }

>
>
> >
> > Needing help.
> >
> > thanks,
> >
> > ------------------------
> > Sanjay
> > RAD Solutions Private Limited
> > sanjay at radsolutions co in
> >
> >
> >
> >
> > -------------------- m2f --------------------
> >
> > --
> > http://www.openerp.com/forum/viewtopic.php?p=26977#26977
> >
> > -------------------- m2f --------------------
> >
> >
> > _______________________________________________
> > Tinyerp-users mailing list
> > http://tiny.be/mailman/listinfo/tinyerp-users
>
>
>
> --
> Albert Cervera i Areny
> http://www.NaN-tic.com
> _______________________________________________
> Tinyerp-users mailing list
> http://tiny.be/mailman/listinfo/tinyerp-users
>



-- 
[b]question = (to) ? be : !be; .[/b]
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to