# Eagle Estates - Part 12
# To-Do's
- Override the
_compute_display_nameto display properties usingnameandconstruction_date - Override the
createto call the_onchange_construction_dateto set the age. This can be skipped if theagefield is set through a compute method instead
# Notes
- Data can be loaded into Odoo using XML or CSV files. This is usually done by defining data files in the
datafolder and loading them in the__manifest__.pyfile - Data file naming should follow the convention of
<MODEL_NAME>_data.xmlor<MODEL.NAME>.csv- Ex:
eagle_tag_data.xmloreagle.tag.csv
- Ex:
# _compute_display_name:
@api.depends('name', 'construction_date')
def _compute_display_name(self):
for record in self:
name = record.name or ''
if record.construction_date:
name = f"{name} | {record.construction_date}"
record.display_name = name
# create:
@api.model_create_multi
def create(self, vals_list):
res = super().create(vals_list)
for record in res:
if not record.age:
record._onchange_construction_date()
return res
We will have more examples for other ORM methods later on as we explore more features of Odoo.