-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Tutorials - mobar #1079
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?
Tutorials - mobar #1079
Conversation
8d0dd85 to
e313e75
Compare
ushyme
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.
Looks good 👍🏾! Just a few tiny remarks.
| @@ -0,0 +1,15 @@ | |||
| { | |||
| 'name': 'Estate', | |||
| 'author': 'mobar', | |||
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.
| 'author': 'mobar', | |
| 'author': 'Odoo S.A.', |
As an employee, you work in the name of Odoo.
| from odoo import fields, models | ||
|
|
||
|
|
||
| class RecurringPlan(models.Model): |
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.
| class RecurringPlan(models.Model): | |
| class EstateProperty(models.Model): |
The Python class name should follow the CamelCase version of the model's _name.
| <menuitem id="estate_property_menu" | ||
| name="Advertisements" | ||
| parent="estate_menu_root"/> | ||
|
|
||
| <menuitem id="estate_property_menu_action" | ||
| name="Properties" | ||
| parent="estate_property_menu" | ||
| action="estate_property_action"/> |
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.
| <menuitem id="estate_property_menu" | |
| name="Advertisements" | |
| parent="estate_menu_root"/> | |
| <menuitem id="estate_property_menu_action" | |
| name="Properties" | |
| parent="estate_property_menu" | |
| action="estate_property_action"/> | |
| <menuitem id="estate_advertisements_menu" | |
| name="Advertisements" | |
| parent="estate_menu_root"/> | |
| <menuitem id="estate_property_menu" | |
| name="Properties" | |
| parent="estate_property_menu" | |
| action="estate_property_action"/> |
Menu item IDs should be descriptive of what they represent.
Also, you can nest the menuitems to make the hierarchy easier to read.
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 | ||
| access_estate_property_type,access_estate_property_type,model_estate_property_type,base.group_user,1,1,1,1 | ||
| access_estate_property_tag,access_estate_property_tag,model_estate_property_tag,base.group_user,1,1,1,1 | ||
| access_estate_property_offer,access_estate_property_offer,model_estate_property_offer,base.group_user,1,1,1,1 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.
| access_estate_property_offer,access_estate_property_offer,model_estate_property_offer,base.group_user,1,1,1,1 | |
| access_estate_property_offer,access_estate_property_offer,model_estate_property_offer,base.group_user,1,1,1,1 | |
Missing newline at end of file.
This also applies to all your xml files

No description provided.