diff --git a/estate/__init__.py b/estate/__init__.py new file mode 100644 index 00000000000..9a7e03eded3 --- /dev/null +++ b/estate/__init__.py @@ -0,0 +1 @@ +from . import models \ No newline at end of file diff --git a/estate/__manifest__.py b/estate/__manifest__.py new file mode 100644 index 00000000000..3842964b2b3 --- /dev/null +++ b/estate/__manifest__.py @@ -0,0 +1,12 @@ +{ + 'name': 'estate', + 'version': '1.0', + 'depends': ['base'], + 'category': 'tutorials', + 'author': "sadeo-odoo", + 'license': 'LGPL-3', + 'description': 'A real estate module', + 'installable': True, + 'application': True, + +} diff --git a/estate/models/__init__.py b/estate/models/__init__.py new file mode 100644 index 00000000000..599a1f8bdbd --- /dev/null +++ b/estate/models/__init__.py @@ -0,0 +1 @@ +from . import estate_property \ No newline at end of file diff --git a/estate/models/estate_property.py b/estate/models/estate_property.py new file mode 100644 index 00000000000..3507056d750 --- /dev/null +++ b/estate/models/estate_property.py @@ -0,0 +1,25 @@ +_propertfrom odoo import fields,models + +class EstateProperty(models.Model): + _name='estate.property' + _descripion='Estate Property description module' + name=fields.Char(string='Name',required=True) + description=fields.Text(string='Description') + bedrooms=fields.Integer(string='Bedrooms') + price = fields.Float(string='Price') + garden = fields.Boolean(string='Garden') + postcode = fields.Char(string='Postal Code') + date_available = fields.Date(string='Available Date') + expected_price = fields.Float(string='Expected Price') + selling_price = fields.Float(string='Selling Price',required=True) + meeting_time = fields.Datetime(string='Meeting') + living_area = fields.Integer(string='Living Area') + facades = fields.Integer(string='Facades') + garage = fields.Boolean(string='Garage') + garden = fields.Boolean(string='Garden') + garden_area = fields.Integer(string='Garden Area') + garden_orientation=fields.Selection( + [ + ('north','North'),('south','South'),('east','East'),('west','West') + ] + )