-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ahta - Server framework 101 #209
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.
Keep going, just a few remarks
- Ensure your commits respects Odoo's guidelines
- Configure your IDE to get ride of EOF issues. "Insert Final Newline" in VScode.
<record id="estate_property_type_action" model="ir.actions.act_window"> | ||
<field name="name">Property Types</field> | ||
<field name="res_model">estate.property.type</field> | ||
<field name="view_mode">list,form</field> |
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.
FYI: this is the default. Not a bad practice to have it here anyway. ref
…ew Application, and Chapter 3: Models And Basic Fields
75e607d
to
ebc6946
Compare
if (this.props.onChange) { | ||
this.props.onChange(); |
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.
FYI: this syntax works also
if (this.props.onChange) { | |
this.props.onChange(); | |
this.props.onChange?.(); |
@api.model_create_multi | ||
def create(self, vals_list): | ||
for vals in vals_list: | ||
property = self.env["estate.property"].browse(vals["property_id"]) |
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.
property = self.env["estate.property"].browse(vals["property_id"]) | |
property = self.env["estate.property"].browse(vals["property_id"]).exists() |
@@ -0,0 +1,2 @@ | |||
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink | |||
estate.access_estate_property,access_estate_property,estate.model_estate_property,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.
This record rule already exist
No description provided.