Skip to content

Technical Onboarding brbu - #1428

Open
AarnorDeDardaliel wants to merge 5 commits into
19.0from
19.0-estate-brbu
Open

AarnorDeDardaliel wants to merge 5 commits into
19.0from
19.0-estate-brbu

Conversation

@AarnorDeDardaliel

Copy link
Copy Markdown

No description provided.

@robodoo

robodoo commented Sep 16, 2026

Copy link
Copy Markdown

Pull request status dashboard

@leclerc-leo leclerc-leo 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.

👋 Great Work, dont forget to setup a linter (ruff + ruff.toml file in odoo/community repo)
You can check the ci/style too.

Comment thread estate/models/__init__.py Outdated
Comment on lines +1 to +6

from . import estate_property
from . import estate_property_type
from . import estate_property_tag
from . import estate_property_offer

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nitpick

Suggested change
from . import estate_property
from . import estate_property_type
from . import estate_property_tag
from . import estate_property_offer
from . import estate_property
from . import estate_property_type
from . import estate_property_tag
from . import estate_property_offer

@@ -0,0 +1,77 @@
# -*- 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.

A relic from another era.

Suggested change
# -*- coding: utf-8 -*-

Comment thread estate/models/estate_property.py Outdated
def action_sold(self):
for record in self:
if record.state == "cancelled":
raise exceptions.UserError("A cancelled property cannot be sold !")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nitpick, translations

Suggested change
raise exceptions.UserError("A cancelled property cannot be sold !")
raise exceptions.UserError(_("A cancelled property cannot be sold !"))

Comment thread README.md
[Master the Odoo web framework](https://www.odoo.com/documentation/latest/developer/tutorials/master_odoo_web_framework.html)
tutorial's solutions. For example, `17.0`, `17.0-discover-js-framework-solutions` and
`17.0-master-odoo-web-framework-solutions`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

dont forget to not push changes on generic files.

Comment thread estate/__manifest__.py
],
'installable': True,
'application': True,
'author': 'brbu',

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
'author': 'brbu',
'author': 'Odoo S.A.',

return True

No newline at end of file

_positive_offer_price = models.Constraint(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

try to keep the constraint bellow the field.

usually we do:

  • fields
  • constraints
  • compute
  • internal function
  • action
  • the rest

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