-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[ADD] estate: added table property, property_offer, property_tag, pro… #875
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
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.
Hey! Good job for this PR, I've been extra picky 🎉 Some comments apply at several places but I didn't write them all #lazy
A few generic comments:
- Could you add a description to the PR
- Usually, you'll want one commit / task to keep the chain of commits as clean and small as possible. As here, the task is to create the module Estate, it should be the one commit on your branch. Could you squash your commits into 1 ?
estate/access/ir.model.access.csv
Outdated
estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,1,1,1 | ||
estate.access_estate_property_type,access_estate_property_type,estate.model_estate_property_type,base.group_user,1,1,1,1 | ||
estate.access_estate_property_tag,access_estate_property_tag,estate.model_estate_property_tag,base.group_user,1,1,1,1 | ||
estate.access_estate_property_offer,access_estate_property_offer,estate.model_estate_property_offer,base.group_user,1,1,1,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.
Also, add a EOF in everyfile even though runbot does not trigger an error
estate/views/estate_menus.xml
Outdated
<menuitem id="estate_first_level_menu" name="Advertisements"> | ||
<menuitem id="estate_property_menu_action" name="Properties" action="estate_property_action"/> | ||
</menuitem> | ||
<menuitem id="estate_first_level_menu_2" name="Settings"> |
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.
ID for a menu: <model_name>_menu
, or <model_name>_menu_do_stuff
for submenus.
<filter string="With Garden" name="with_garden" domain="[('garden','=',True)]" /> | ||
<filter string="With Garage" name="with_garage" domain="[('garage','=',True)]" /> | ||
<filter string="Available" name="available" | ||
domain="['|', ('state' , '=', 'new'), ('state', '=', 'offer_received')]" /> |
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.
What about this ?
domain="['|', ('state' , '=', 'new'), ('state', '=', 'offer_received')]" /> | |
domain="[('state' , 'in', ('new', 'offer_received'))]" /> |
…perty_type