I have a model and I want to automatically fill one field of this model.
E.g. I have some test model and I want to automaticly genrate EAN13 for this after adding new product:
class product_test(osv.osv):
_name = "product.test"
_description = "Product test"
_table = "product_test"
_columns = {
'name': fields.char('name', size=64, required=True, translate=True, select=True),
'ean13': fields.char('EAN13', size=64, readonly=True),
}
_order = "name"