Skip to content

valvi - technical training - #1388

Open
Topvennie wants to merge 22 commits into
odoo:19.0from
odoo-dev:19.0-onboarding-valvi
Open

valvi - technical training#1388
Topvennie wants to merge 22 commits into
odoo:19.0from
odoo-dev:19.0-onboarding-valvi

Conversation

@Topvennie

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Aug 17, 2026

Copy link
Copy Markdown

Pull request status dashboard

@Topvennie Topvennie changed the title [ADD] estate: init valvi - technical training Aug 17, 2026

@qucol-odoo qucol-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.

Helloo, thank you for your great work 🙏 I left a few comments, try to apply them whenever you find the time :) It's also a good practice to try to have a green runbot, you can see the current issues on the runbot build page :)

Comment thread estate/models/estate_offer.py
Comment thread estate/models/estate_offer.py Outdated
Comment thread estate/models/estate_offer.py Outdated
Comment thread estate/models/estate_offer.py Outdated
Comment thread estate/models/estate_offer.py
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/models/estate_property.py Outdated
Comment thread estate/views/estate_property_views.xml Outdated
Comment thread estate/views/estate_property_views.xml Outdated
Comment thread estate/__manifest__.py
@Topvennie
Topvennie force-pushed the 19.0-onboarding-valvi branch 3 times, most recently from d6af469 to 056ee98 Compare August 20, 2026 09:48
@Topvennie Topvennie closed this Aug 20, 2026
@Topvennie Topvennie reopened this Aug 20, 2026
@Topvennie
Topvennie force-pushed the 19.0-onboarding-valvi branch 2 times, most recently from 52ec011 to 807efd6 Compare August 20, 2026 09:56
	modified:   estate/views/estate_property_views.xml
	new file:   git-challenge.txt

	modified:   estate/views/estate_property_views.xml
@Topvennie
Topvennie force-pushed the 19.0-onboarding-valvi branch from d875cee to c1c10ba Compare August 20, 2026 10:03

@qucol-odoo qucol-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.

Very good job overall 👍 👏 I just left a few comments

In a real case scenario, it wouldn't make much sense to have commits fixing issues from other commits belonging to the same PR, because it means that you are introducing an issue and fixing it simultaneously: it would be better to simply not introduce it at all. It would be a great exercise for you to try to get rid of all the [FIX]/[CLN]/... commits in your PR (hint: you should probably use git rebase -i). Ultimately you could also squash commits to have one per chapter, or even squash everything as one big [ADD] commit, it's kinda up to you, as long as you experiment a bit with the interactive rebasing (mostly the edit and squash options) :)

def action_status_accepted(self):
self.ensure_one()

if self.status == "accepted" or self.status == "refused":

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
if self.status == "accepted" or self.status == "refused":
if self.status in ('accepted', 'refused'):

<search>
<field name="name" string="Estate" />
<field name="selling_price" />
<field name="living_area" string="Living Area (sqm)" filter_domain="[('living_area', '>=', self)]" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Optional]
Although it technically doesn't break, the XML parser can sometimes struggle with some characters, such as >.

Suggested change
<field name="living_area" string="Living Area (sqm)" filter_domain="[('living_area', '>=', self)]" />
<field name="living_area" string="Living Area (sqm)" filter_domain="[('living_area', '&gt;=', self)]" />

@tagged("post_install", "-at_install")
class TestEstatePropertyHttp(HttpCase):
def test_garden_reset(self):
f = Form(self.env["estate.property"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This is ok because the test/method is short, but you should try to use self-explanatory variable name. An easy and short alternative here was form or even property_form.

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