From 271ba5124f11095a3a549b65f842d237b2a652aa Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Wed, 28 Aug 2024 12:04:10 +0300 Subject: [PATCH] Update re_unit.py --- odex25_realstate/real_estate/models/re_unit.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/odex25_realstate/real_estate/models/re_unit.py b/odex25_realstate/real_estate/models/re_unit.py index e7de9410e..6f65fbf06 100644 --- a/odex25_realstate/real_estate/models/re_unit.py +++ b/odex25_realstate/real_estate/models/re_unit.py @@ -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")