Skip to content

Onboarding Juica Server 101 - #1391

Open
JuanICasareski wants to merge 25 commits into
odoo:19.0from
odoo-dev:19.0-onboarding-juica
Open

Onboarding Juica Server 101#1391
JuanICasareski wants to merge 25 commits into
odoo:19.0from
odoo-dev:19.0-onboarding-juica

Conversation

@JuanICasareski

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Aug 18, 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 💪
Just a few comments, and always add a newline by the end of the file

Comment thread estate/models/__init__.py Outdated
from . import estate_property
from . import estate_property_type
from . import estate_property_tag
from . import estate_property_offer No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should always have a newline by the end of each 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.

Damn I should've set up the linter haha

Comment thread estate/models/estate_property.py Outdated
copy=False,
default=fields.Date.today() + relativedelta(months=3)
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not the best practice to have a newline in between the fields' definition, readability wise

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.

Done!

@@ -0,0 +1,76 @@
from odoo import fields, models
from dateutil.relativedelta import relativedelta

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We normally should always have two blank lines before the definition of the class

Comment thread estate/models/estate_property_tag.py Outdated
@@ -0,0 +1,8 @@
from odoo import fields, models

class EstatePropertyType(models.Model):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

heads up for the typo here. This is EstatePropertyTag not Type 😅

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.

haha I shouldn't be copying file so freely, fixed

Comment thread estate/models/estate_property.py Outdated
Comment on lines +100 to +102
self.garden_area = 10 if self.garden else 0
# Nasty magic string. I should turn the option into a variable and then reference it
self.garden_orientation = "north" if self.garden else None

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
self.garden_area = 10 if self.garden else 0
# Nasty magic string. I should turn the option into a variable and then reference it
self.garden_orientation = "north" if self.garden else None
if self.garden:
self.garden_area = 10
# Nasty magic string. I should turn the option into a variable and then reference it
self.garden_orientation = "north"
else:
self.garden_area = 0
self.garden_orientation = None

better to have it like this instead of checking twice, wdyt?

@JuanICasareski JuanICasareski Aug 18, 2026

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 would normally prefer a return inside the if self.garden and what would've been the else block as a fallback.

Something along the lines of:

if self.garden:
   self.garden_area = 10
   return

self.garden_area = 0

idk enough about the company's guidelines or maybe what you usually do, so....

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

That would be a good approach as well 👌

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.

Done!

@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 👏 👏

Just a few comments. Also try to make the ci/* checks to pass, check what are the errors and fix them

Comment thread estate/models/estate_property_offer.py Outdated
Comment thread estate/models/estate_property_offer.py Outdated
Comment thread estate/views/estate_property_offer_views.xml Outdated
Comment thread estate/views/estate_property_offer_views.xml Outdated
Comment thread estate_account/models/__init__.py Outdated
@@ -0,0 +1 @@
from . import estate_property No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

newline at the end of file 😅

@JuanICasareski
JuanICasareski force-pushed the 19.0-onboarding-juica branch 2 times, most recently from c0a535b to 18d3715 Compare August 24, 2026 09:31
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