Skip to content

SGAB - Technical Training #726

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

Open
wants to merge 14 commits into
base: 18.0
Choose a base branch
from

Conversation

shgabr
Copy link

@shgabr shgabr commented Apr 22, 2025

Tutorial application for technical training

New application for real estate purposes.
@robodoo
Copy link

robodoo commented Apr 22, 2025

Pull request status dashboard

shgabr added 2 commits April 22, 2025 15:11
New estate_property model for the estate module
New CSV file to give full access to users with group group_user for read, write, create, and unlink on estate_property model
Copy link

@SergeBayet SergeBayet left a comment

Choose a reason for hiding this comment

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

Some remarks :)

@SergeBayet
Copy link

Please make ci/style happy :)
image

@SergeBayet
Copy link

You can use git rebase -i to reword the commit. Google is your friend here :)

shgabr added 7 commits April 28, 2025 11:39
New XML for views of menus and actions for estate.property model
…y model

Property list view displays custom fields. Redesigned property form view. Property search bar searches based on predefined fields with filtering on state and group by on postcode.
…ss, relations, and views

New property type model to categorize properties (Many2One). New property tags model to add further categorization to properties (Many2Many). New property offer model for sotring offers made on property (One2Many). Each model has their access, relations with property model, and views (form, list, and menu)  implemented. New Many2One fields (buyer and seller) added to property model.
…operty offer models

New compute fields added to estate property model. Fields have compute, inverse, and onchange private methods to set appropriate fields.
New action buttons "Sold" and "Cancel" added to property form to change state of property to sold or cancel. Cannot set canceled property as sold and set sold property as canceled. New action buttons "Accept" and "Refuse" added to property offer list to change offer state and set property buyer and property selling price. Only 1 offer can be accepted for a given property at a given time.
…g, and property offer models

New sql and python constraints added to 3 models: property, property tag, and property offer. The sql constraints ensures unique property & tag name,  strictly positive property expected price & property offer price, and positive property selling price. The python constraints ensures that the property selling price is not less than 90% of the property expected price.
Statusbar widget, ordering in list view, and search modifications
@shgabr shgabr force-pushed the 18.0-technical-training-sgab branch from 47f76ac to 62b7a69 Compare April 28, 2025 09:40
… views

Property state changes to offer received when offer is created on property. New user inherited model that adds property ids and new user view with property tab.
@shgabr shgabr force-pushed the 18.0-technical-training-sgab branch from 62b7a69 to 9b6c563 Compare April 28, 2025 11:35
Copy link

@vava-odoo vava-odoo left a comment

Choose a reason for hiding this comment

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

Good job. Don't hesitate to discuss if a point is not clear :-)

shgabr added 3 commits April 28, 2025 16:20
New module that depends on estate and account modules. Create new estate_property model that inherits from estate property and overrides action_sold method to create new invoice for partner when property is set as sold.
Kanban view added to property views, grouped by property type.
…ew exceptions

Change inherited user filename and its model. Remove unnecessary conditions on offer_ids list. Add new execeptions while creating offers.
@shgabr shgabr force-pushed the 18.0-technical-training-sgab branch from 54c3f5f to 2296dbc Compare April 29, 2025 13:51
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