Skip to content

yalla - Technical Training - #1387

Open
YousefAllam221b wants to merge 15 commits into
odoo:19.0from
odoo-dev:19.0-onboarding-yalla
Open

yalla - Technical Training#1387
YousefAllam221b wants to merge 15 commits into
odoo:19.0from
odoo-dev:19.0-onboarding-yalla

Conversation

@YousefAllam221b

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Aug 17, 2026

Copy link
Copy Markdown

Pull request status dashboard

@yoba-odoo yoba-odoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work 👌

For the commit titles please follow the guidelines here

Comment thread estate/models/estate_property.py
Comment thread estate/security/ir.model.access.csv Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/views/estate_menus.xml Outdated
Comment thread estate/views/estate_property_views.xml Outdated
@YousefAllam221b
YousefAllam221b force-pushed the 19.0-onboarding-yalla branch 4 times, most recently from 1e36dd6 to e48b2d2 Compare August 21, 2026 09:04
Extracted all view into their respective view xmls. Fixed some bugs and linting.

@yoba-odoo yoba-odoo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good work 💯
Some comments for enhancements, could you also please try to make the ci/* checks pass

Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py
Comment thread estate/models/estate_property_offer.py Outdated
Comment thread estate/models/estate_property_offer.py Outdated
existing_prices = estate_property.offer_ids.mapped("price")

if existing_prices:
min_price = min(existing_prices)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Since you defined an _order for the offers model with price so any recordset of offers will be sorted according to the price so to get the minimum you can do something like estate_property.offer_ids[-1]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yeah, that makes sense. But for the sake of readability, wouldn't it be better to leave it as is so the reader doesn't have to guess why I grabbed the last item? specially since its a low cost operation either way

Comment thread estate/models/estate_property_tag.py Outdated
Comment thread estate/models/estate_property_type.py Outdated
Comment thread estate/views/estate_property_offer_views.xml Outdated
Comment thread estate/views/estate_property_type_views.xml Outdated
Comment thread estate/__manifest__.py
Comment on lines +12 to +15
"security/ir.model.access.csv",
"views/estate_property_views.xml",
"views/estate_property_actions.xml",
"views/estate_menus.xml",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Am I missing something? why didn't you introduced the other xml files here?
estate_property_offer_views, estate_property_type_views and res_users_views
I would be surprised if they are working without adding them to the manifest file😂

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

i forgot to add them but for some reason the local server didn't break so i thought everything is fine 😂😂

@yoba-odoo

Copy link
Copy Markdown

Another thing I just noticed for the commits we normally name them like this
[tag] module_name : small description about the PR don't forget to check the git guidelines

@YousefAllam221b

Copy link
Copy Markdown
Author

Another thing I just noticed for the commits we normally name them like this [tag] module_name : small description about the PR don't forget to check the git guidelines

Yeah i have read the git guidelines, i thought this is how you would want it, to know exactly which chapter is each commit. so in this case, the Chapter is the name of the module

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.

3 participants