-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[ADD] training: chapter 1-6 #889
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
… Odoo guidelines This commit resolves multiple formatting and linting issues to align with Odoo's official coding guidelines: - Added missing newline at end of files (`__init__.py`, `__manifest__.py`, `estate_property.py`). - Removed unused import `timedelta` from `datetime`. - Added an extra blank line before class definition `EstateProperty` in file `estate_property.py`. - Removed trailing whitespace from lines 5 and 17 in `estate_property.py`. - Ensured proper indentation and closing bracket formatting. These improvements enhance code readability, maintainability, and compliance with Odoo community standards.
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,
Can you please adapt your commit message according to this.
<field name="name"/> | ||
<field name="description"/> | ||
<field name="postcode"/> | ||
<field name="date_availability"/> | ||
<field name="expected_price"/> | ||
<field name="selling_price"/> | ||
<field name="bedrooms"/> | ||
<field name="living_area"/> | ||
<field name="facades"/> | ||
<field name="garage"/> | ||
<field name="garden"/> | ||
<field name="garden_area"/> | ||
<field name="garden_orientation"/> | ||
<field name="state"/> |
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 display every field in list view. We can display only those are important fields and other fields we can add in optional.
@@ -0,0 +1,42 @@ | |||
from odoo import fields, models | |||
from dateutil.relativedelta import relativedelta |
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.
You can refer to this document for imports order.
https://www.odoo.com/documentation/18.0/contributing/development/coding_guidelines.html#imports
'description': """Real Estate Application.""", | ||
'summary': """Real Estate Application for beginner.""", | ||
'depends': ['base'], | ||
'author': "Aaryan Parpyani (aarp)", |
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.
You can follow the same quote through the file.
<menuitem id="test_first_level_menu" name="Advertisements" parent="test_menu_root"/> | ||
<menuitem id="test_model_menu_action" name="Estate Property" parent="test_first_level_menu" action="estate_property"/> | ||
</data> | ||
</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 an empty line at the end of the file.
No description provided.