-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[ADD] estate: initial module with property management #952
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
base: 18.0
Are you sure you want to change the base?
Conversation
Introduce a new module `estate` for real estate management as part of the Server Framework 101 onboarding exercise. The module includes: - Models: `estate.property`, `estate.property.type` - Views: form, tree, and search for both models - Menus: "Advertisement > Properties" and "Settings > Property Types" - Access rights for the new models This commit sets the foundation for further training tasks
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.
Hello,
You refer this documentation for commit message description.
https://www.odoo.com/documentation/18.0/contributing/development/git_guidelines.html#commit-message-full-description
estate/__init__.py
Outdated
@@ -0,0 +1,2 @@ | |||
# -*- coding: 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.
No need to declare.
estate/__manifest__.py
Outdated
@@ -0,0 +1,20 @@ | |||
# -*- coding: 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.
No need to declare.
estate/models/__init__.py
Outdated
@@ -0,0 +1,3 @@ | |||
# -*- coding: 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.
No need to declare here.
estate/models/estate_property.py
Outdated
@@ -0,0 +1,54 @@ | |||
# -*- coding: 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.
No need to declare.
@@ -0,0 +1,9 @@ | |||
# -*- coding: 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.
No need to declare.
</form> | ||
</field> | ||
</record> | ||
<record id="estate_property_view_search" model="ir.ui.view"> |
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.
Should be one empty line before it.
</list> | ||
</field> | ||
</record> | ||
<record id="estate_property_view_form" model="ir.ui.view"> |
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.
Should be one empty line before it.
</list> | ||
</field> | ||
</record> | ||
<record id="estate_property_type_view_form" model="ir.ui.view"> |
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.
Should be one empty line before it.
</form> | ||
</field> | ||
</record> | ||
<record id="estate_property_type_view_search" model="ir.ui.view"> |
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.
Should be one empty line before it.
</search> | ||
</field> | ||
</record> | ||
<record id="estate_property_type_action" model="ir.actions.act_window"> |
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.
Should be one empty line before it.
This update enhances the Estate module with several new functional features: - Introduced Property Tags with dedicated menu and view, including color customization for better organization. - Added access rights for the new models and restricted property records so users only see their own. - Improved property list view with visual decorations to highlight status (success, warning, danger, muted). - Added buttons to mark properties as Sold or Cancelled, visible only under the right conditions. - Enforced data integrity with new computed values, onchange behavior, and validation rules on property records.
….property This update enhances the Estate module with several new functional features: - Inherited the res.users model to add a custom field, displayed in the user form view. - Added a kanban view for estate.property to provide a visual overview of properties.
This update introduces a new module `estate_account` to streamline invoicing directly from the Estate Property form: - Allows creating invoices with pre-filled partner information. - Supports setting the move type automatically. - Adds invoice lines based on selected product, quantity, and price. - Simplifies the workflow by linking property management with accounting operations
…mponents - Implemented Playground component containing: - Counter component with increment functionality - Card component with subcomponent using slots for flexible content - Built TodoList component: - Toggle todo completion - Remove todo items - Integrated TodoItem as a subcomponent - Exercises follow the Owl documentation for hands-on learning and practice
'name': "Awesome Owl", | ||
|
||
'summary': """ | ||
"name": "Awesome Owl", |
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.
unnecessary changes.
Starting module for "Discover the JS framework, chapter 1: Owl components" | ||
""", | ||
|
||
'description': """ | ||
"description": """ |
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.
unnecessary changes.
"author": "Odoo", | ||
"website": "https://www.odoo.com", |
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.
unnecessary changes.
onToggle() { | ||
this.toggle.value = !this.toggle.value; | ||
} | ||
} |
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.
Should be one empty line at the end of the file.
onRemove(todoId) { | ||
this.props.removeTodo(todoId); | ||
} | ||
} |
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.
Should be one empty line at the end of the file.
const index = this.todos.findIndex(item => item.id === todoId); | ||
this.todos.splice(index, 1); | ||
} | ||
} |
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.
Should be one empty line at the end of the file.
onMounted(() => { | ||
ref.el.focus(); | ||
}); | ||
} |
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.
Should be one empty line at the end of the file.
<field name="code">model._auto_reject_offer()</field> | ||
<field name="state">code</field> | ||
</record> | ||
</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.
Should be one empty line at the end of the file.
Introduce a new module
estate
for real estate management as part of the Server Framework 101 onboarding exercise.The module includes:
estate.property
,estate.property.type
This commit sets the foundation for further training tasks