-
Notifications
You must be signed in to change notification settings - Fork 2.6k
HKAFE - Technical Training #996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HashemKhaled
wants to merge
17
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-technical-onboarding-hkafe
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+590
−0
Open
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6c46d87
[ADD] estate: add initial manifest for Real Estate module
HashemKhaled 0f11cda
[IMP] estate: implement estate property model
HashemKhaled 15ad935
[IMP] estate: add access control for estate property model
HashemKhaled c521487
[IMP] estate: add estate property views and menus
HashemKhaled 761b7a2
[FIX] estate: remove the unnneeded installable field
HashemKhaled 7c4b002
[IMP] estate: enhance property views with detailed form and search fu…
HashemKhaled 04e7f84
[FIX] estate: remove the group on postcode filter for property search…
HashemKhaled d771be5
[IMP] estate: add property type, tag, and offer models with views and…
HashemKhaled 582c69a
[FIX] estate: adjust style
HashemKhaled 9d9a3a4
[FIX] estate: adjust style
HashemKhaled 7148e7f
[IMP] estate: Add notes.
Mathilde411 ffc7f58
[IMP] estate: add computed fields and onchanges
HashemKhaled c0276dc
[IMP] estate: add buttons for some actions
HashemKhaled 3423a10
[IMP] estate: add sql and python constraints
HashemKhaled ea1092d
[IMP] estate: enhance views
HashemKhaled e2e96ab
[FIX] estate: adjust style
HashemKhaled f974e96
[IMP] estate: use inheritance
HashemKhaled File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
'name': 'Real Estate', | ||
'summary': 'Manages real estate properties.', | ||
'depends': ['base'], | ||
'data': [ | ||
'security/ir.model.access.csv', | ||
], | ||
'application': True, | ||
'installable': True, | ||
HashemKhaled marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
} | ||
HashemKhaled marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import estate_property | ||
HashemKhaled marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from odoo import models, fields | ||
|
||
class Property(models.Model): | ||
_name = "estate.property" | ||
_description = "Real Estate Property" | ||
|
||
name = fields.Char(required=True) | ||
description = fields.Text() | ||
postcode = fields.Char() | ||
date_availability = fields.Date() | ||
expected_price = fields.Float(required=True) | ||
selling_price = fields.Float() | ||
bedrooms = fields.Integer() | ||
living_area = fields.Integer() | ||
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'), | ||
]) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 | ||
HashemKhaled marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.