diff --git a/bemade_sethy_configuration/views/res_partner_views.xml b/bemade_sethy_configuration/views/res_partner_views.xml
index c3914b7..2207638 100644
--- a/bemade_sethy_configuration/views/res_partner_views.xml
+++ b/bemade_sethy_configuration/views/res_partner_views.xml
@@ -74,42 +74,30 @@
-
-
-
-
-
-
-
+ string="Add Property"
+ invisible="is_property == True"
+ />
diff --git a/bemade_sethy_configuration/wizard/__init__.py b/bemade_sethy_configuration/wizard/__init__.py
index 7dbdad0..d6f19ad 100644
--- a/bemade_sethy_configuration/wizard/__init__.py
+++ b/bemade_sethy_configuration/wizard/__init__.py
@@ -1 +1 @@
-from . import create_property_wizard
+from . import property_wizard
diff --git a/bemade_sethy_configuration/wizard/create_property_wizard.py b/bemade_sethy_configuration/wizard/create_property_wizard.py
deleted file mode 100644
index dbdc56d..0000000
--- a/bemade_sethy_configuration/wizard/create_property_wizard.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from odoo import models, fields, api
-
-class CreatePropertyWizard(models.TransientModel):
- _name = 'create.property.wizard'
-
- property_id = fields.Many2one('res.partner', string='Property', domain=[('is_property', '=', True)])
-
- def action_done(self):
- # Here process your data, for example:
- self.env['res.partner'].browse(self._context.get('active_ids')).write({'property_id': self.property_id.id})
diff --git a/bemade_sethy_configuration/wizard/property_wizard.py b/bemade_sethy_configuration/wizard/property_wizard.py
new file mode 100644
index 0000000..a0b2d55
--- /dev/null
+++ b/bemade_sethy_configuration/wizard/property_wizard.py
@@ -0,0 +1,31 @@
+from odoo import models, fields, api
+
+class CreatePropertyWizard(models.TransientModel):
+ _name = 'create.property.wizard'
+ _description = 'Property Wizard'
+
+ property_id = fields.Many2one(
+ comodel_name='res.partner',
+ string='Property',
+ domain=[('is_property', '=', True)],
+ required=True
+ )
+
+ def action_done(self):
+ # Here process your data, for example:
+ self.env['res.partner'].browse(self._context.get('active_ids')).write({'property_id': self.property_id.id})
+
+ def action_create_property(self):
+ # Redirect to the form view of 'res.partner' for user to create new property
+ return {
+ 'type': 'ir.actions.act_window',
+ 'res_model': 'res.partner',
+ 'view_mode': 'form',
+ 'view_type': 'form',
+ 'context': {"default_is_property": True},
+ 'target': 'new',
+ }
+
+ def action_select_property(self):
+ # wizard action goes here. Use self.partner_id for selected property
+ pass
\ No newline at end of file
diff --git a/bemade_sethy_configuration/wizard/property_wizard_views.xml b/bemade_sethy_configuration/wizard/property_wizard_views.xml
new file mode 100644
index 0000000..3f31320
--- /dev/null
+++ b/bemade_sethy_configuration/wizard/property_wizard_views.xml
@@ -0,0 +1,20 @@
+
+
+
+ property.wizard.form
+ property.wizard
+ form
+
+
+
+
+
\ No newline at end of file
diff --git a/bemade_sethy_configuration/wizard/select_property_wizard.py b/bemade_sethy_configuration/wizard/select_property_wizard.py
deleted file mode 100644
index 9e6542d..0000000
--- a/bemade_sethy_configuration/wizard/select_property_wizard.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from odoo import models, fields, api
-
-class AddPropertyWizard(models.TransientModel):
- _name = 'add.property.wizard'
-
- property_id = fields.Many2one('res.partner', string='Property', domain=[('is_property', '=', True)])
-
- def action_done(self):
- # Here process your data, for example:
- self.env['res.partner'].browse(self._context.get('active_ids')).write({'property_id': self.property_id.id})