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.


-- 
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

-- 
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/a8d49ca2-6277-11b0-3b52-4cfa315b2c29%40koolpi.com.

Reply via email to