Skip to content

Commit

Permalink
[ADD] chap 2 et chap3 du tuto
Browse files Browse the repository at this point in the history
  • Loading branch information
plha-odoo committed Jan 21, 2025
1 parent 0df9ae8 commit 3c8218b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions estate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
7 changes: 7 additions & 0 deletions estate/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{ 'name': 'real estate app plh',
'depends': [
'base',],
'application': True,

This comment has been minimized.

Copy link
@ethanrobv

ethanrobv Jan 21, 2025

unnecessary whitespace


}
1 change: 1 addition & 0 deletions estate/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import estate_property
20 changes: 20 additions & 0 deletions estate/models/estate_property.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from odoo import fields, models

class EstateProperty(models.Model):
_name = "estate.property"
_description = "reals estate properties"

name = fields.Char('Property Name',required=True)
description = fields.Text('The Descritption')
postcode = fields.Char()
date_availability = fields.Date()
expected_price = fields.Float(required=True)
selling_price = fields.Float()
bedrooms = fields.Integer()
living_area = fields.Integer()
facades = fields.Integer()
garage = fields.Boolean()
garden = fields.Boolean()
garden_area= fields.Integer()
garden_orientation = fields.Selection([("North","North"),("South","South"),("East","East"),("West","West")])

0 comments on commit 3c8218b

Please sign in to comment.