Skip to content

Conversation

@lkerroum
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Dec 15, 2025

Pull request status dashboard

@lkerroum lkerroum changed the title leker - T leker - Technical training Dec 15, 2025
@amah-odoo amah-odoo self-requested a review December 15, 2025 15:11
Copy link

@amah-odoo amah-odoo left a comment

Choose a reason for hiding this comment

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

Nice work 💪🏼

Let's go with your first review 🎉

Comment on lines 20 to 21
garden_orientation = fields.Selection(string='Garden Orientation',
selection=[('north', 'North'), ('south', 'South'), ('est', 'Est'), ('west', 'West')])

Choose a reason for hiding this comment

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

I prefer that way to be more readable for the selection fields

Suggested change
garden_orientation = fields.Selection(string='Garden Orientation',
selection=[('north', 'North'), ('south', 'South'), ('est', 'Est'), ('west', 'West')])
garden_orientation = fields.Selection([
('north', 'North'),
('south', 'South'),
('east', 'East'),
('west', 'West')
], string='Garden Orientation',)

Copy link
Author

@lkerroum lkerroum Dec 16, 2025

Choose a reason for hiding this comment

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

Done! Thanks

Comment on lines 1 to 6
{'name': 'Real Estate',
'depends': ['base'],
'application': True,
'author': 'leker',
'license': 'LGPL-3',
}

Choose a reason for hiding this comment

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

let's go with this format 👀

Suggested change
{'name': 'Real Estate',
'depends': ['base'],
'application': True,
'author': 'leker',
'license': 'LGPL-3',
}
{
'name': 'Real Estate',
'depends': ['base'],
'application': True,
'author': 'leker',
'license': 'LGPL-3',
}

Copy link
Author

@lkerroum lkerroum Dec 16, 2025

Choose a reason for hiding this comment

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

Done!

@lkerroum lkerroum force-pushed the master-tutorial-server-leker branch from db23143 to 37fd581 Compare December 16, 2025 13:00
@lkerroum lkerroum force-pushed the master-tutorial-server-leker branch from 37fd581 to cb5ea91 Compare December 16, 2025 13:09
Copy link

@amah-odoo amah-odoo left a comment

Choose a reason for hiding this comment

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

Thanks for your work so far 💪🏼

Comment on lines 4 to 6
'data': ['security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml'],

Choose a reason for hiding this comment

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

let's be coherent with the rest of odoo modules 👀

Suggested change
'data': ['security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml'],
'data': [
'security/ir.model.access.csv',
'views/estate_property_views.xml',
'views/estate_menus.xml'
],

'views/estate_property_views.xml',
'views/estate_menus.xml'],
'application': True,
'author': 'leker',

Choose a reason for hiding this comment

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

The author is always 'Odoo S.A.' for the RD because to develop for odoo it is not out own apps 🤔

<field name="res_model">estate.property</field>
<field name="view_mode">list,form</field>
</record>
</odoo> No newline at end of file

Choose a reason for hiding this comment

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

Do not forget to add the end of file empty line

</list>
</field>
</record>
</odoo> No newline at end of file

Choose a reason for hiding this comment

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

end of file new line ⚠️

Comment on lines +1 to +6
from . import (
estate_property,
estate_property_offer,
estate_property_tag,
estate_property_type,
)

Choose a reason for hiding this comment

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

I know that Ruff is happy with that but we actually prefer to have each import on its own line like

from . import estate_property
from . import estate_property_offer
...

<menuitem id="property_tags_model_menu_action" action="estate_property_tag_action"/>
</menuitem>
</menuitem>
</odoo> No newline at end of file

Choose a reason for hiding this comment

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

end of file new line ⚠️

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