-
Notifications
You must be signed in to change notification settings - Fork 2.5k
First commit - 02_newapp.html #950
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: 19.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.
Nice job!
<menuitem id="estate_model_menu_action" action="estate_model_create"/> | ||
</menuitem> | ||
</menuitem> | ||
</odoo> |
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.
Missing an end of file line here
@@ -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 |
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.
Missing an end of file line here
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
|
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.
Not needed
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. |
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.
Not needed
garden_area = fields.Integer() | ||
garden_orientation = fields.Selection( | ||
string='Orientation', | ||
selection=[('north', 'North'), ('south', 'South'),('east', 'East'),('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.
Indentation please, new line for each pair :D
estate/models/estate_property.py
Outdated
garden_orientation = fields.Selection( | ||
string='Orientation', | ||
selection=[('north', 'North'), ('south', 'South'),('east', 'East'),('west', 'West')], | ||
help="Orientation of the garden of the property") |
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.
help="Orientation of the garden of the property") | |
help="Orientation of the garden of the property", | |
) |
indentation
('offer_received','Offer Received'), | ||
('offer_accepted','Offer Accepted'), | ||
('sold','Sold'), | ||
('canceled', 'Cancelled')], |
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.
('canceled', 'Cancelled')], | |
('canceled', 'Cancelled'), | |
], |
description = fields.Text() | ||
postcode = fields.Char() | ||
date_availability = fields.Date(default=fields.Date.today() + relativedelta.relativedelta(months=3)) | ||
expected_price = fields.Float(required=True) | ||
selling_price = fields.Float() | ||
bedrooms = fields.Integer(default=2) | ||
bedrooms = fields.Integer('Bedrooms',default=2) |
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.
bedrooms = fields.Integer('Bedrooms',default=2) | |
bedrooms = fields.Integer('Bedrooms', default=2) |
No description provided.