How to calculate value for default value in object fields in Odoo 8 models.py
We cannot use the _default attribute anymore in Odoo 8.
field_name = fields.datatype( string='value', default=compute_default_value )
In the field declaration above, I want to call a method to assign a default value for this field. For example:
name = fields.Char( string='Name', default= _get_name() )
Please help me with this.
Jay venkat
source share