Conversation
Created init and manifest files
Added fields in __manifest__.py Created models folder, EstateProperty model with the required fields and imported it in __manifest__.py files
Created data folder and file ir.model.access.csv inside it giving read, write, create and unlink permissions to the group base.group_user
Added views and actions for estate.property. Added a 3 level menu with the basic action Added and improved attributes
Mathilde411
left a comment
There was a problem hiding this comment.
Good job !
I was kinda nitpicky but this is a good job overall :)
| <odoo> | ||
| <menuitem id="estate_menu_root" name="Estate"> | ||
| <menuitem id="estate_first_level_menu" name="Advertisements"> | ||
| <menuitem id="estate_model_menu_action" action="estate_model_action"/> | ||
| </menuitem> | ||
| </menuitem> | ||
| </odoo> No newline at end of file |
There was a problem hiding this comment.
menus should be in the views dir not in data
| <menuitem id="estate_first_level_menu" name="Advertisements"> | ||
| <menuitem id="estate_model_menu_action" action="estate_model_action"/> |
There was a problem hiding this comment.
XMLids for menus should follow the doc
| <menuitem id="estate_first_level_menu" name="Advertisements"> | |
| <menuitem id="estate_model_menu_action" action="estate_model_action"/> | |
| <menuitem id="estate_menu_advertisement" name="Advertisement"> | |
| <menuitem id="estate_property_menu" action="estate_property_action"/> |
| @@ -0,0 +1,2 @@ | |||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 No newline at end of file | |||
| @@ -0,0 +1,2 @@ | |||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 No newline at end of file | |||
| @@ -0,0 +1,2 @@ | |||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | |||
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 No newline at end of file | |||
There was a problem hiding this comment.
Just like record rules, access XMLids should be formatted like <model_name>_access_<group_name> (see documentation)
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 | |
| estate_property_access_user,estate.property.user,model_estate_property,base.group_user,1,1,1,1 |
| 'data/estate_menus.xml', | ||
| ], | ||
| 'license': 'AGPL-3' | ||
| } No newline at end of file |
| 'views/estate_property_views.xml', | ||
| 'data/estate_menus.xml', | ||
| ], | ||
| 'license': 'AGPL-3' |
There was a problem hiding this comment.
It was because I was looking at the other manifest files in the tutorials repo as "inspiration" and they were under that one, but after looking it up it seems I should use LGPL-3 instead.
| 'category': 'Tutorials', | ||
| 'version': '0.1', | ||
| 'application': True, | ||
| 'installable': True, |
There was a problem hiding this comment.
installable is True by default, no need to add it.
| 'version': '0.1', | ||
| 'application': True, | ||
| 'installable': True, | ||
| 'depends': ['base'], |
There was a problem hiding this comment.
| 'depends': ['base'], | |
| 'depends': [ | |
| 'base', | |
| ], |
Doing that allows to know when a dependency was added with a git blame :)
| 'author': "Odoo", | ||
| 'website': "https://www.odoo.com/", | ||
| 'category': 'Tutorials', | ||
| 'version': '0.1', |
There was a problem hiding this comment.
For modules outside of Odoo standard, version should include the Odoo version you are targetting like <odoo major>.<odoo minor>.<module major>.<module minor>.<module patch>
So there it'd be like:
| 'version': '0.1', | |
| 'version': '19.0.0.1.0', |
- Added newlines to the relevant files - Changed license and version - Moved menus form data to views folder - Now follows formatting rules
Added list views to main menu Added form view when creating property Added search views, filters and group
0b858e1 to
70fa394
Compare

Created init and manifest files