-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[ADD] estate: create an estate app #333
base: 18.0
Are you sure you want to change the base?
Conversation
pvag-odoo
commented
Feb 6, 2025
- Created an estate application for odoo
- Added some basic models and fields
- Added security for the models
- Added menu, basic views (Form and List)
Why does your commit has 2 authors. Remove the files not required. Please do proper commit. This pr involves changes from |
estate/__manifest__.py
Outdated
"views/estate_property_views.xml", | ||
"views/estate_menus.xml" | ||
], | ||
"depends" : [ 'base_setup'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"depends" : [ 'base_setup'] | |
"depends": ['base_setup'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The keys of this manifest file not properly ordered. Take the help of codebase to understand the order in which we write things in manifest
|
||
class EstateProperty(models.Model): | ||
_name = "estate.property" | ||
_description = "Estate Property" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_description = "Estate Property" | |
_description = "Estate Property" | |
estate/views/estate_menus.xml
Outdated
@@ -0,0 +1,10 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<odoo> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
estate/views/estate_menus.xml
Outdated
<menuitem id="test_model_menu_action" action="estate_property_actions"/> | ||
</menuitem> | ||
</menuitem> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,10 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<odoo> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
9dbd80c
to
e90c074
Compare
@sami-odoo All the changes are done. Thank you for informing. |
d26bf35
to
cc6e23a
Compare
- Created an estate application for odoo - Added some basic models and fields - Added security for the models - Added menu, basic views (Form and List)
cc6e23a
to
4ad362d
Compare
• Added list, form, search view to the estate app • Added filters and group by options to the estate app
estate/security/ir.model.access.csv
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no new line at the end of file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your external id should have a proper name which indicates what the menu is created for.
estate/views/estate_menus.xml
Outdated
@@ -0,0 +1,8 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> | |||
<odoo> | |||
<menuitem id="test_menu_root" name="Estate"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For eg:
<menuitem id="test_menu_root" name="Estate"> | |
<menuitem id="estate_menu_root" name="Estate"> |
<field name="name">Properties</field> | ||
<field name="res_model">estate.property</field> | ||
<field name="view_mode">list,form</field> | ||
</record> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</record> | |
</record> | |
<field name="date_availability"/> | ||
</list> | ||
</field> | ||
</record> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</record> | |
</record> | |
</sheet> | ||
</form> | ||
</field> | ||
</record> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</record> | |
</record> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different records must have a valid amount of space between the records
estate/__manifest__.py
Outdated
@@ -0,0 +1,12 @@ | |||
{ | |||
"name": "estate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"name": "estate", | |
"name": "Real Estate", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we create a views folder then what do we do is usually keep the record of the action window above the record of views
- Added estate_property_tag, estate_property_type, estate_property_offer models. - Added Many2one, Many2many, One2many relations between different models in the estate app.
fc451af
to
87da9d5
Compare
• Added computed fields to dynamically calculate values in the Real Estate module. • Implemented @api.onchange methods to update fields based on user input. • Enhanced model logic to improve data consistency and automation.
• Added Accept and Reject actions for property offers. • Updated property status when an offer is accepted. • Set buyer and selling price on property upon offer acceptance.