-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[ADD] estate: add an estate module #790
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
Conversation
This adds an estate module that can be used to manage advertisements and offers for different real estate properties as part of the "Sever framework 101" tutorial
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.
Hi @mamr-odoo
Here are some tips to fit Odoo standards. Review all your code to be sure you applied the changes where it is needed!
🚀
This will clean up the estate property module from styling errors
1966ee9
to
a5040d0
Compare
Server framework 101: Chapter 4 This will add security rules to the estate module and give read, write, create and unlink permissions to the group base.group_user
Server framework 101: Chapter 5 This will add menus to the estate module and specific attributes to some of the fields
Server framework 101: Chapter 6 This will add form, list, and search views to the estate property model
Server framework 101: Chapter 7 (WIP) This will add estate property type model and will add property type, salesperson, and buyer to the estate property model
This will resolve odoo#790 (comment)
Server framework 101: Chapter 7 This will add `estate property tag` and `estate property offer` models and add them to the `estate property` model and views
This will update the column widths for the estate properties list for better readability
Server framework 101: Chapter 8 This will add to `estate.property`: - `best_price` calculated from `offer_ids` to get the highest price - `total_area` calculated from `living_area` and `garden_area` - interactions between the `garden`, `garden_area`, and `garden_orientation` and to `estate.property.offer`: - `date_deadline` and `validity` to keep track of how long the offer will stay valid
…ffer` Server framework 101: Chapter 9 This will add to `estate.property`: - `Sold` and `Cancelled` buttons to allow the users to set the update the state of properties and to `estate.property.offer`: - `Accept` and `Refuse` buttons to allow users to respond to offers
Server framework 101: Chapter 10 This will add the following constraints: - Users will have to input valid expected prices - Users won't be able to accept an offer with a price less than 0.9X the expected price - Users will have to input valid offer prices - Users won't be able to create different property tags or property types with the same names
Server framework 101: Chapter 10 This will: - Add inline properties list to property type - Add widget for property state - Add ordering to the lists - Add conditional display to the fields - Add colors to the property and offer lists based on their status - Add search by living area greater than or equal for properties - Add an "offers" smart button to property type
Server framework 101: Chapter 12 This will add a list of the available (new, offer received) to the user view
Server framework 101: Chapter 13 This will add an `estate_account` module which will automatically create the invoice for the buyer of a property when it is marked as sold [ADD] estate: add module for invoicing customers after purchase Server framework 101: Chapter 13 This will add an `estate_account` module which will automatically create the invoice for the buyer of a property when it is marked as sold
b59a51f
to
3e72a2c
Compare
Server framework 101: Chapter 14 This will add a kanban view grouped by property type
This will replace the deprecated `kanban-box` template with the `card` template
This will remove the invisible fields from the estate forms because they are not needed
6693444
to
23ebd9a
Compare
property_type_id = fields.Many2one('estate.property.type', string='Property Type') | ||
description = fields.Text('Description') | ||
postcode = fields.Char('Postcode') | ||
date_availability = fields.Date('Available From', default=fields.Date.today() + relativedelta(months=3), copy=False) |
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.
date_availability = fields.Date('Available From', default=fields.Date.today() + relativedelta(months=3), copy=False) | |
date_availability = fields.Date( | |
'Available From', | |
default=lambda self: fields.Date.today() + relativedelta(months=3), | |
copy=False | |
) |
As this value should be recomputed, prefer using a lambda
function. The current way stores the value at the server start.
Good job mate! 🚀 |
This adds an estate module that can be used to manage advertisements and offers for different real estate properties as part of the "Sever framework 101" tutorial