Skip to content

lugva - Technical Training#1240

Open
lugva-odoo wants to merge 18 commits intoodoo:19.0from
odoo-dev:19.0-real-estate-lugva
Open

lugva - Technical Training#1240
lugva-odoo wants to merge 18 commits intoodoo:19.0from
odoo-dev:19.0-real-estate-lugva

Conversation

@lugva-odoo
Copy link
Copy Markdown

No description provided.

@robodoo
Copy link
Copy Markdown

robodoo commented Apr 21, 2026

Pull request status dashboard

@delcourtfl delcourtfl self-requested a review April 22, 2026 08:26
Copy link
Copy Markdown

@delcourtfl delcourtfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there ! Good work already, just a few comments.

Comment thread estate/security/ir.model.access.csv Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/__manifest__.py
Comment thread estate/models/estate_property.py Outdated
Copy link
Copy Markdown

@delcourtfl delcourtfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello ! Everything is quite good already, just added a few minor remarks.

(Also you should update the title of your first commit to make the runbot CI style happy)

Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/views/estate_menus.xml Outdated
Comment thread estate/views/estate_property_type_view_form.xml Outdated
Comment thread .gitignore
@delcourtfl delcourtfl requested review from vandroogenbd and removed request for vandroogenbd April 27, 2026 07:55
Added declaration of the estate module as a new installable application.
More can be found in Chapter 2 of Server Framework 101
Basic fields needed for the real estate property have been added. More can be found in Server framework 101, Chapter 3
Added security access rights for base group user to read, write, create and unlink. Read more in Server framework 101: Chapter 4
Added views for estate properties, now they can be added and modified. More can be found in Server framework 101, Chapter 5
Added basic views like list, form and search for the estate properties.More can be found in Server framework 101, Chapter 6
Added relationships to the property model, like property offers, property tags, property types.More can be found in Server framework 101, Chapter 7

[FIX] There was a wrong value for the property garden_orientation selection for the 'south' key. It was changed to 'South'
Added computed fields like best offer and total area, also used onchange to set default values for garden area and orientation. More can be found in Server framework 101, Chapter 8

[FIX] estate: resolvement of comments
Fixed minor issues found during the review, like empty lines at the end
of files, consistent usage of same type of quotes.
Added buttons to quickly set sold or cancelled statuses for properties.
Also added buttons to accept and refuse offers. Read more in Server framework 101: Chapter 9
@lugva-odoo lugva-odoo force-pushed the 19.0-real-estate-lugva branch from 4f26ddc to 65910b5 Compare April 27, 2026 14:24
Added security checks for different attributes of models which will
validate user input. Read more in Server framework 101: Chapter 10

[FIX] general: adjust .gitignore
.gitignore file was adjusted to ignore files made by VSCode
Improved the UI by adding different widgets, added widgets until tag
colors including.
Added conditional visibility on different fields and rows in lists. Also
made default search filters for properties. Then created a stat button
for offers of a specific property type. More can be found in Server framework 101, Chapter 11

[FIX] estate: change property status on acceptance/reject
Before property status was not changed when and offer was accepted or
rejected, now it was changed.
Added constraints for deletion and creation of properties and offers.
Also made it possible to view properties per salesperson in settings. More can be found in Server framework 101, Chapter 12

[FIX] estate: fix offer acceptance check
Before I checked if buyer_id is set to see if there are any offers
accepted. Now this has been improved by really looking for accepted
offers.

[FIX] estate: fix issues presented in code review
Added newlines at the end of the file and improved code structure
Added invoicing possibilites when a property is sold. More can be found in Server framework 101, Chapter 13
Added kanban view for estate properties. They are grouped by property
type. More can be found in Chapter 14 Server Framework 101
@lugva-odoo lugva-odoo force-pushed the 19.0-real-estate-lugva branch from e1d9ef9 to 09368e5 Compare April 27, 2026 15:28
lugva-odoo and others added 2 commits April 28, 2026 14:41
Unnecessary comments were removed from the xml
This commit is here to introduce the testing framework of Odoo. Try running the
tests using `--test-tags :TestEstateProperty`.

Doc:
https://www.odoo.com/documentation/18.0/developer/reference/backend/testing.html?highlight=tests#invocation

The tests were made such that the first one should work but the second one
should fail. Your job is to ensure both tests pass in the end. You should update
the behaviour of the appropriate models.

If you want, you can also add a small test of your own to get a feel for it.
Copy link
Copy Markdown

@delcourtfl delcourtfl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there ! Really good work, not much to say, you got the general idea for module development.

A test was added to your branch, if you have some extra time you can try to run/adapt it to ensure it works properly on your implementation.

Also to end this part in a clean way you should squash your commits (using an interactive rebase) into:

  • one for estate module
  • one for estate_account module

Comment thread estate/models/estate_property_offer.py Outdated
Comment thread estate/models/estate_property_offer.py
Added tests, and also functionality to not accept offers below expected
price for south-oritented properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants