Update re_unit.py

This commit is contained in:
zainab2097 2024-08-28 12:04:10 +03:00 committed by GitHub
parent a101fed6fd
commit 271ba5124f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -15,8 +15,12 @@ class Unit(models.Model):
_description = 'Property Unit'
_inherit = ['mail.thread', 'mail.activity.mixin']
_order = "id desc"
unit_category = fields.Selection([
('residential', 'Residential'),
('commercial', 'Commercial'),
('lands', 'Lands') ], string="Unit Category")
attach_nbr = fields.Integer(compute='get_attachments')
active = fields.Boolean(default=True)
unlock = fields.Boolean(default=True, string="Unlock")