Update Internal_property

This commit is contained in:
zainab2097 2024-08-28 11:05:27 +03:00 committed by GitHub
parent 274cf6693e
commit 10b3ec6cc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ class Property(models.Model):
# Smart button to count related maintenance records # Smart button to count related maintenance records
maintenance_count = fields.Integer(string="Maintenance Count", compute='_compute_maintenance_count') 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): def _compute_maintenance_count(self):
for record in self: for record in self: