-
Notifications
You must be signed in to change notification settings - Fork 2.8k
leker - Technical training #1063
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: master
Are you sure you want to change the base?
Conversation
amah-odoo
left a comment
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.
Nice work 💪🏼
Let's go with your first review 🎉
estate/models/estate_property.py
Outdated
| garden_orientation = fields.Selection(string='Garden Orientation', | ||
| selection=[('north', 'North'), ('south', 'South'), ('est', 'Est'), ('west', 'West')]) |
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.
I prefer that way to be more readable for the selection fields
| garden_orientation = fields.Selection(string='Garden Orientation', | |
| selection=[('north', 'North'), ('south', 'South'), ('est', 'Est'), ('west', 'West')]) | |
| garden_orientation = fields.Selection([ | |
| ('north', 'North'), | |
| ('south', 'South'), | |
| ('east', 'East'), | |
| ('west', 'West') | |
| ], string='Garden Orientation',) |
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.
Done! Thanks
estate/__manifest__.py
Outdated
| {'name': 'Real Estate', | ||
| 'depends': ['base'], | ||
| 'application': True, | ||
| 'author': 'leker', | ||
| 'license': 'LGPL-3', | ||
| } |
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.
let's go with this format 👀
| {'name': 'Real Estate', | |
| 'depends': ['base'], | |
| 'application': True, | |
| 'author': 'leker', | |
| 'license': 'LGPL-3', | |
| } | |
| { | |
| 'name': 'Real Estate', | |
| 'depends': ['base'], | |
| 'application': True, | |
| 'author': 'leker', | |
| 'license': 'LGPL-3', | |
| } |
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.
Done!
db23143 to
37fd581
Compare
37fd581 to
cb5ea91
Compare
…ype, salesperson, buyer
amah-odoo
left a comment
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.
Thanks for your work so far 💪🏼
| 'data': ['security/ir.model.access.csv', | ||
| 'views/estate_property_views.xml', | ||
| 'views/estate_menus.xml'], |
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.
let's be coherent with the rest of odoo modules 👀
| 'data': ['security/ir.model.access.csv', | |
| 'views/estate_property_views.xml', | |
| 'views/estate_menus.xml'], | |
| 'data': [ | |
| 'security/ir.model.access.csv', | |
| 'views/estate_property_views.xml', | |
| 'views/estate_menus.xml' | |
| ], |
| 'views/estate_property_views.xml', | ||
| 'views/estate_menus.xml'], | ||
| 'application': True, | ||
| 'author': 'leker', |
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 author is always 'Odoo S.A.' for the RD because to develop for odoo it is not out own apps 🤔
| <field name="res_model">estate.property</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
| </odoo> No newline at 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.
Do not forget to add the end of file empty line
| </list> | ||
| </field> | ||
| </record> | ||
| </odoo> No newline at 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.
end of file new line
| from . import ( | ||
| estate_property, | ||
| estate_property_offer, | ||
| estate_property_tag, | ||
| estate_property_type, | ||
| ) |
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.
I know that Ruff is happy with that but we actually prefer to have each import on its own line like
from . import estate_property
from . import estate_property_offer
...| <menuitem id="property_tags_model_menu_action" action="estate_property_tag_action"/> | ||
| </menuitem> | ||
| </menuitem> | ||
| </odoo> No newline at 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.
end of file new line

No description provided.