Skip to content

19.0 technical training jever - #1429

Open
JeromeVerkyndt wants to merge 6 commits into
odoo:19.0from
odoo-dev:19.0-technical-training-jever
Open

JeromeVerkyndt wants to merge 6 commits into
odoo:19.0from
odoo-dev:19.0-technical-training-jever

Conversation

@JeromeVerkyndt

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Sep 16, 2026

Copy link
Copy Markdown

Pull request status dashboard

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

Hi I already did a small review, overall it's good just minor things. I always made one comment for a specific issue but it applies for the whole pull request.

So for instance the final newline occurs at multiple places.

Good Job :D

Comment thread estate/models/__init__.py Outdated
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hi do not forget to follow those Git guidelines when doing you commit messages

Comment thread estate/models/__init__.py Outdated
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

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.

Missing final new line at end of file

Comment thread estate/models/__init__.py Outdated
@@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

# -*- coding: utf-8 -*- not needed anymore

class Property(models.Model):
_name = "estate.property"
_description = "Estate property 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.

Do not forget to make you runbot green, here ci/style would complain

Comment thread estate/models/estate_property.py Outdated
name = fields.Char(required=True)
description = fields.Text()
postcode = fields.Char()
date_availability = fields.Date(copy=False, default=date.today()+ timedelta(days=90))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You should use a lambda here for your default parameter otherwise, it would be fixed from the server start. Using a lambda here would be dynamic at creation.

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