Update Internal_property
This commit is contained in:
parent
274cf6693e
commit
10b3ec6cc6
|
|
@ -20,6 +20,12 @@ class Property(models.Model):
|
|||
|
||||
# Smart button to count related maintenance records
|
||||
maintenance_count = fields.Integer(string="Maintenance Count", compute='_compute_maintenance_count')
|
||||
is_new = fields.Boolean(string="Is New Property?", default=False)
|
||||
building_age = fields.Integer(string="Building Age (Years)")
|
||||
suitability_for_residence = fields.Selection([
|
||||
('residential', 'Residential'),
|
||||
('non_residential', 'Non-Residential'),
|
||||
], string="Property Suitability for Residence")
|
||||
|
||||
def _compute_maintenance_count(self):
|
||||
for record in self:
|
||||
|
|
|
|||
Loading…
Reference in New Issue