El lunes, 23 de abril de 2018, 4:25:03 (UTC-3), Sergi Almacellas Abellana 
escribió:
> El 22/04/18 a les 00:12, Francisco Maria Moyano Casco ha escrit:
> > Hi,
> >   I am trying to put a default cost and list price, but had no success.
> > 
> >   The code am working on is the next one: 
> >  
> > ............
> >    @staticmethod
> >    def default_list_price():
> >        return 1.0
> > ..............
> > 
> >    I know that both fields are Property fields, and that is why my code 
> > doesn't work.
> > 
> >    I am inventoring all my assets, and I need to have some defaults values 
> > on the product.template
> > 
> >    Regards.
> >        Francisco
> > 
> 
> Property fields have their default on the Property table. You should
> create a record with the field and not related to any record and this
> will be used as default value.
> 

Sorry for bothering again. Is there any example on any module I could use?
I understand your reply, but I am not sure how to use it.

Thanks
    Francisco

-- 
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/641c62fd-3076-40b0-8914-347ff7447027%40googlegroups.com.

Reply via email to