-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Estate module declaration and models #1126
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
mohamedakhalil18
wants to merge
17
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-training-moali
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.
+864
−186
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
078cbd1
[ADD] Estate: Added estate property module declaration and models
mohamedakhalil18 5fedcdf
[FIX] Estate: Added linting and formatting
mohamedakhalil18 814bf0d
[IMP] Estate: Added access control to my module
mohamedakhalil18 06130c7
[IMP] Estate: Added action and menus to enable user to add properties
mohamedakhalil18 6cd9489
[IMP] Estate: Added search, filtering, grouping functionalities and r…
mohamedakhalil18 196e7e3
[IMP] Estate: Added related fields to the estate module
mohamedakhalil18 fbb2a57
[IMP] Estate: Added computational methods, onchange, @api calls
mohamedakhalil18 aa670af
[IMP] Estate: Added action buttons to sell/cancel an apartment and ac…
mohamedakhalil18 35bf86d
[IMP] Estate: Constraints added to improve business logic
mohamedakhalil18 49b86b6
[IMP] Estate: Added stat_button, inline editting, and widgets
mohamedakhalil18 88b6b68
[FIX] Estate: Resolved reviewer comments on previous commits regardin…
mohamedakhalil18 918e85b
[IMP] Estate: Modified CRUD actions as well as display the apartments…
mohamedakhalil18 76d2025
[ADD] Estate_Account module was added in order to invoice sold proper…
mohamedakhalil18 bfb5972
[IMP] Added kanban views to the estate properties in improve overall …
mohamedakhalil18 d66b18a
[FIX] Refactored the directory and code to follow coding guidelines
mohamedakhalil18 f2f8323
[FIX] Editted the codebase to unblock the runbot merging
mohamedakhalil18 3c9f708
[FIX] Estate: Rearranged the views in estate directory and dependencies
mohamedakhalil18 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 |
|---|---|---|
| @@ -1 +0,0 @@ | ||
| # -*- coding: utf-8 -*- | ||
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 |
|---|---|---|
| @@ -1,29 +1,23 @@ | ||
| # -*- coding: utf-8 -*- | ||
| { | ||
| 'name': "Awesome Clicker", | ||
|
|
||
| 'summary': """ | ||
| "name": "Awesome Clicker", | ||
| "summary": """ | ||
| Starting module for "Master the Odoo web framework, chapter 1: Build a Clicker game" | ||
| """, | ||
|
|
||
| 'description': """ | ||
| "description": """ | ||
| Starting module for "Master the Odoo web framework, chapter 1: Build a Clicker game" | ||
| """, | ||
|
|
||
| 'author': "Odoo", | ||
| 'website': "https://www.odoo.com/", | ||
| 'category': 'Tutorials', | ||
| 'version': '0.1', | ||
| 'application': True, | ||
| 'installable': True, | ||
| 'depends': ['base', 'web'], | ||
|
|
||
| 'data': [], | ||
| 'assets': { | ||
| 'web.assets_backend': [ | ||
| 'awesome_clicker/static/src/**/*', | ||
| "author": "Odoo", | ||
| "website": "https://www.odoo.com/", | ||
| "category": "Tutorials", | ||
| "version": "0.1", | ||
| "application": True, | ||
| "installable": True, | ||
| "depends": ["base", "web"], | ||
| "data": [], | ||
| "assets": { | ||
| "web.assets_backend": [ | ||
| "awesome_clicker/static/src/**/*", | ||
| ], | ||
|
|
||
| }, | ||
| 'license': 'AGPL-3' | ||
| "license": "AGPL-3", | ||
| } |
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 |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| from . import controllers |
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 |
|---|---|---|
| @@ -1,30 +1,25 @@ | ||
| # -*- coding: utf-8 -*- | ||
| { | ||
| 'name': "Awesome Dashboard", | ||
|
|
||
| 'summary': """ | ||
| "name": "Awesome Dashboard", | ||
| "summary": """ | ||
| Starting module for "Discover the JS framework, chapter 2: Build a dashboard" | ||
| """, | ||
|
|
||
| 'description': """ | ||
| "description": """ | ||
| Starting module for "Discover the JS framework, chapter 2: Build a dashboard" | ||
| """, | ||
|
|
||
| 'author': "Odoo", | ||
| 'website': "https://www.odoo.com/", | ||
| 'category': 'Tutorials', | ||
| 'version': '0.1', | ||
| 'application': True, | ||
| 'installable': True, | ||
| 'depends': ['base', 'web', 'mail', 'crm'], | ||
|
|
||
| 'data': [ | ||
| 'views/views.xml', | ||
| "author": "Odoo", | ||
| "website": "https://www.odoo.com/", | ||
| "category": "Tutorials", | ||
| "version": "0.1", | ||
| "application": True, | ||
| "installable": True, | ||
| "depends": ["base", "web", "mail", "crm"], | ||
| "data": [ | ||
| "views/views.xml", | ||
| ], | ||
| 'assets': { | ||
| 'web.assets_backend': [ | ||
| 'awesome_dashboard/static/src/**/*', | ||
| "assets": { | ||
| "web.assets_backend": [ | ||
| "awesome_dashboard/static/src/**/*", | ||
| ], | ||
| }, | ||
| 'license': 'AGPL-3' | ||
| "license": "AGPL-3", | ||
| } |
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 |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| from . import controllers | ||
| from . import controllers | ||
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
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 |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| # -*- coding: utf-8 -*- | ||
| 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 |
|---|---|---|
| @@ -1,27 +1,24 @@ | ||
| # -*- coding: utf-8 -*- | ||
| { | ||
| 'name': "Gallery View", | ||
| 'summary': """ | ||
| "name": "Gallery View", | ||
| "summary": """ | ||
| Starting module for "Master the Odoo web framework, chapter 3: Create a Gallery View" | ||
| """, | ||
|
|
||
| 'description': """ | ||
| "description": """ | ||
| Starting module for "Master the Odoo web framework, chapter 3: Create a Gallery View" | ||
| """, | ||
|
|
||
| 'version': '0.1', | ||
| 'application': True, | ||
| 'category': 'Tutorials', | ||
| 'installable': True, | ||
| 'depends': ['web', 'contacts'], | ||
| 'data': [ | ||
| 'views/views.xml', | ||
| "version": "0.1", | ||
| "application": True, | ||
| "category": "Tutorials", | ||
| "installable": True, | ||
| "depends": ["web", "contacts"], | ||
| "data": [ | ||
| "views/views.xml", | ||
| ], | ||
| 'assets': { | ||
| 'web.assets_backend': [ | ||
| 'awesome_gallery/static/src/**/*', | ||
| "assets": { | ||
| "web.assets_backend": [ | ||
| "awesome_gallery/static/src/**/*", | ||
| ], | ||
| }, | ||
| 'author': 'Odoo S.A.', | ||
| 'license': 'AGPL-3' | ||
| "author": "Odoo S.A.", | ||
| "license": "AGPL-3", | ||
| } |
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 |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # import filename_python_file_within_folder_or_subfolder | ||
| from . import ir_action | ||
| from . import ir_ui_view | ||
| from . import ir_action, ir_ui_view |
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 |
|---|---|---|
| @@ -1,10 +1,9 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class ActWindowView(models.Model): | ||
| _inherit = 'ir.actions.act_window.view' | ||
| _inherit = "ir.actions.act_window.view" | ||
|
|
||
| view_mode = fields.Selection(selection_add=[ | ||
| ('gallery', "Awesome Gallery") | ||
| ], ondelete={'gallery': 'cascade'}) | ||
| view_mode = fields.Selection( | ||
| selection_add=[("gallery", "Awesome Gallery")], ondelete={"gallery": "cascade"}, | ||
| ) |
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 |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| # -*- coding: utf-8 -*- | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class View(models.Model): | ||
| _inherit = 'ir.ui.view' | ||
| _inherit = "ir.ui.view" | ||
|
|
||
| type = fields.Selection(selection_add=[('gallery', "Awesome Gallery")]) | ||
| type = fields.Selection(selection_add=[("gallery", "Awesome Gallery")]) |
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 |
|---|---|---|
| @@ -1 +0,0 @@ | ||
| # -*- coding: utf-8 -*- | ||
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 |
|---|---|---|
| @@ -1,27 +1,24 @@ | ||
| # -*- coding: utf-8 -*- | ||
| { | ||
| 'name': "Awesome Kanban", | ||
| 'summary': """ | ||
| "name": "Awesome Kanban", | ||
| "summary": """ | ||
| Starting module for "Master the Odoo web framework, chapter 4: Customize a kanban view" | ||
| """, | ||
|
|
||
| 'description': """ | ||
| "description": """ | ||
| Starting module for "Master the Odoo web framework, chapter 4: Customize a kanban view. | ||
| """, | ||
|
|
||
| 'version': '0.1', | ||
| 'application': True, | ||
| 'category': 'Tutorials', | ||
| 'installable': True, | ||
| 'depends': ['web', 'crm'], | ||
| 'data': [ | ||
| 'views/views.xml', | ||
| "version": "0.1", | ||
| "application": True, | ||
| "category": "Tutorials", | ||
| "installable": True, | ||
| "depends": ["web", "crm"], | ||
| "data": [ | ||
| "views/views.xml", | ||
| ], | ||
| 'assets': { | ||
| 'web.assets_backend': [ | ||
| 'awesome_kanban/static/src/**/*', | ||
| "assets": { | ||
| "web.assets_backend": [ | ||
| "awesome_kanban/static/src/**/*", | ||
| ], | ||
| }, | ||
| 'author': 'Odoo S.A.', | ||
| 'license': 'AGPL-3' | ||
| "author": "Odoo S.A.", | ||
| "license": "AGPL-3", | ||
| } |
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 |
|---|---|---|
| @@ -1 +1 @@ | ||
| // TODO: Define here your AwesomeKanban view | ||
| // Todo: Define here your AwesomeKanban view |
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 |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| from . import controllers | ||
| from . import controllers | ||
mohamedakhalil18 marked this conversation as resolved.
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 |
|---|---|---|
| @@ -1,43 +1,37 @@ | ||
| # -*- coding: utf-8 -*- | ||
| { | ||
| 'name': "Awesome Owl", | ||
|
|
||
| 'summary': """ | ||
| "name": "Awesome Owl", | ||
| "summary": """ | ||
| Starting module for "Discover the JS framework, chapter 1: Owl components" | ||
| """, | ||
|
|
||
| 'description': """ | ||
| "description": """ | ||
| Starting module for "Discover the JS framework, chapter 1: Owl components" | ||
| """, | ||
|
|
||
| 'author': "Odoo", | ||
| 'website': "https://www.odoo.com", | ||
|
|
||
| "author": "Odoo", | ||
| "website": "https://www.odoo.com", | ||
| # Categories can be used to filter modules in modules listing | ||
| # Check https://github.com/odoo/odoo/blob/15.0/odoo/addons/base/data/ir_module_category_data.xml | ||
| # for the full list | ||
| 'category': 'Tutorials', | ||
| 'version': '0.1', | ||
|
|
||
| "category": "Tutorials", | ||
| "version": "0.1", | ||
| # any module necessary for this one to work correctly | ||
| 'depends': ['base', 'web'], | ||
| 'application': True, | ||
| 'installable': True, | ||
| 'data': [ | ||
| 'views/templates.xml', | ||
| "depends": ["base", "web"], | ||
| "application": True, | ||
| "installable": True, | ||
| "data": [ | ||
| "views/templates.xml", | ||
| ], | ||
| 'assets': { | ||
| 'awesome_owl.assets_playground': [ | ||
| ('include', 'web._assets_helpers'), | ||
| ('include', 'web._assets_backend_helpers'), | ||
| 'web/static/src/scss/pre_variables.scss', | ||
| 'web/static/lib/bootstrap/scss/_variables.scss', | ||
| 'web/static/lib/bootstrap/scss/_maps.scss', | ||
| ('include', 'web._assets_bootstrap'), | ||
| ('include', 'web._assets_core'), | ||
| 'web/static/src/libs/fontawesome/css/font-awesome.css', | ||
| 'awesome_owl/static/src/**/*', | ||
| "assets": { | ||
| "awesome_owl.assets_playground": [ | ||
| ("include", "web._assets_helpers"), | ||
| ("include", "web._assets_backend_helpers"), | ||
| "web/static/src/scss/pre_variables.scss", | ||
| "web/static/lib/bootstrap/scss/_variables.scss", | ||
| "web/static/lib/bootstrap/scss/_maps.scss", | ||
| ("include", "web._assets_bootstrap"), | ||
| ("include", "web._assets_core"), | ||
| "web/static/src/libs/fontawesome/css/font-awesome.css", | ||
| "awesome_owl/static/src/**/*", | ||
| ], | ||
| }, | ||
| 'license': 'AGPL-3' | ||
| "license": "AGPL-3", | ||
| } |
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 |
|---|---|---|
| @@ -1,3 +1,2 @@ | ||
| # -*- coding: utf-8 -*- | ||
|
|
||
| from . import controllers | ||
| from . import controllers | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
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 |
|---|---|---|
| @@ -1,10 +1,11 @@ | ||
| from odoo import http | ||
| from odoo.http import request, route | ||
| from odoo.http import request | ||
|
|
||
|
|
||
| class OwlPlayground(http.Controller): | ||
| @http.route(['/awesome_owl'], type='http', auth='public') | ||
| @http.route(["/awesome_owl"], type="http", auth="public") | ||
| def show_playground(self): | ||
| """ | ||
| Renders the owl playground page | ||
| """ | ||
| return request.render('awesome_owl.playground') | ||
| return request.render("awesome_owl.playground") |
mohamedakhalil18 marked this conversation as resolved.
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 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,20 @@ | ||
| { | ||
| "name": "Estate Advirtisements", | ||
| "version": "1.0", | ||
| "summary": "Track advertisements added for real estate and allow selling them", | ||
| "website": "https://www.odoo.com/app/estate", | ||
| "depends": ["base"], | ||
| "application": True, | ||
| "installable": True, | ||
| "author": "moali", | ||
| "license": "LGPL-3", | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "views/estate_property_views.xml", | ||
| "views/estate_property_tags_views.xml", | ||
| "views/estate_property_types_views.xml", | ||
| "views/estate_property_offers_views.xml", | ||
| "views/estate_res_users_views.xml", | ||
| "views/menus.xml", | ||
| ], | ||
| } |
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, property_offer, property_tag, property_type, res_user |
Oops, something went wrong.
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.