diff --git a/odex25_realstate/real_estate/models/internal_property.py b/odex25_realstate/real_estate/models/internal_property.py index d95281299..36c0cfc24 100644 --- a/odex25_realstate/real_estate/models/internal_property.py +++ b/odex25_realstate/real_estate/models/internal_property.py @@ -176,10 +176,24 @@ class Property(models.Model): plot_no = fields.Char(string="Plot Number") planned_no = fields.Char(string="Planned Number") planned_id = sketch = fields.Many2one('sketchs.sketchs', string='Planned Name') - + # Stamping information + stamping_count = fields.Selection(string="Stamping Count", selection=[('1', '1'), + ('2', '2'), + ('3', '3')], default="1") stamping = fields.Char(string="Stamping Number") stamping_date = fields.Date(string="Stamping Date") stamping_attach = fields.Binary("Stamping Attach", attachment=True) + + stamping_2 = fields.Char(string="Stamping Number") + stamping_date_2 = fields.Date(string="Stamping Date") + stamping_attach_2 = fields.Binary("Stamping Attach", attachment=True) + stamping_state_2 = fields.Selection([('updated', 'Updated'), ('not_updated', 'Not Updated')]) + + stamping_3 = fields.Char(string="Stamping Number") + stamping_date_3 = fields.Date(string="Stamping Date") + stamping_attach_3 = fields.Binary("Stamping Attach", attachment=True) + stamping_state_3 = fields.Selection([('updated', 'Updated'), ('not_updated', 'Not Updated')]) + # Water Meter information water_count = fields.Selection([('1', '1'), ('2', '2'), diff --git a/odex25_realstate/real_estate/models/re_unit.py b/odex25_realstate/real_estate/models/re_unit.py index 227f13805..a2bbec443 100644 --- a/odex25_realstate/real_estate/models/re_unit.py +++ b/odex25_realstate/real_estate/models/re_unit.py @@ -71,10 +71,21 @@ class Unit(models.Model): bathroom_no = fields.Integer(string="Bathroom Count") hall_no = fields.Integer(string="Hall Count") kitchen_no = fields.Integer(string="kitchen Count") + stamping_count = fields.Selection(string="Stamping Count",related='property_id.stamping_count') + stamping = fields.Char(string="Stamping Number",related='property_id.stamping') + stamping_date = fields.Date(string="Stamping Date",related='property_id.stamping_date') + # stamping_state = fields.Selection(related='property_id.stamping_state') + stamping_attach = fields.Binary("Stamping Attach", attachment=True,related='property_id.stamping_attach') - stamping = fields.Char(string="Stamping Number") - stamping_date = fields.Date(string="Stamping Date") - stamping_attach = fields.Binary("Stamping Attach", attachment=True) + stamping_2 = fields.Char(string="Stamping Number",related='property_id.stamping_2') + stamping_date_2 = fields.Date(string="Stamping Date",related='property_id.stamping_date_2') + stamping_attach_2 = fields.Binary("Stamping Attach", attachment=True,related='property_id.stamping_attach_2') + stamping_state_2 = fields.Selection([('updated', 'Updated'), ('not_updated', 'Not Updated')],related='property_id.stamping_state_2') + + stamping_3 = fields.Char(string="Stamping Number",related='property_id.stamping_3') + stamping_date_3 = fields.Date(string="Stamping Date",related='property_id.stamping_date_3') + stamping_attach_3 = fields.Binary("Stamping Attach", attachment=True,related='property_id.stamping_attach_3') + stamping_state_3 = fields.Selection([('updated', 'Updated'), ('not_updated', 'Not Updated')],related='property_id.stamping_state_3') stamping_new = fields.Char(string="Stamping Number New") stamping_date_new = fields.Date(string="Stamping Date New") diff --git a/odex25_realstate/real_estate/views/internal_property_views.xml b/odex25_realstate/real_estate/views/internal_property_views.xml index d936a9a5e..36886f76c 100644 --- a/odex25_realstate/real_estate/views/internal_property_views.xml +++ b/odex25_realstate/real_estate/views/internal_property_views.xml @@ -39,11 +39,11 @@ icon="fa-wrench"> - +

@@ -58,36 +58,43 @@ placeholder="Property Name"/>

- + - + - + - + - - + + - + - + - + - + - + - + - - @@ -149,12 +159,6 @@ attrs="{'readonly':[('state','!=','draft'),('unlock','=',True)]}"/> - - - @@ -175,7 +179,7 @@ - @@ -185,7 +189,7 @@ attrs="{'readonly':[('state','!=','draft'),('unlock','=',True)]}"/> - @@ -195,13 +199,49 @@ attrs="{'readonly':[('state','!=','draft'),('unlock','=',True)]}"/> + + + + + + + + + + + + + + + + + + + + - - + + @@ -249,8 +289,8 @@ attrs="{'readonly': [('state', '!=', 'draft'), ('unlock', '=', True)],'invisible': [('is_unit_count_fixed', '=', False)]}"/> - - + + @@ -263,7 +303,8 @@ - + @@ -296,7 +337,7 @@ - diff --git a/odex25_realstate/real_estate/views/re_unit_view.xml b/odex25_realstate/real_estate/views/re_unit_view.xml index 64df268c8..507aba7ac 100644 --- a/odex25_realstate/real_estate/views/re_unit_view.xml +++ b/odex25_realstate/real_estate/views/re_unit_view.xml @@ -25,13 +25,14 @@ Unlock Lock - - - + @@ -40,14 +41,18 @@ - + - + @@ -98,7 +104,7 @@ - + @@ -110,9 +116,37 @@ - - - + + + + + + + + + + + + + + + + + + +