Skip to content

Conversation

matho-odoo
Copy link

No description provided.

@robodoo
Copy link

robodoo commented Oct 20, 2025

Pull request status dashboard

@Mathilde411 Mathilde411 requested a review from alan-odoo October 20, 2025 11:55
@Mathilde411 Mathilde411 changed the title [ADD] estate: create the app MATHO Onboarding Oct 20, 2025
Copy link

@alan-odoo alan-odoo left a comment

Choose a reason for hiding this comment

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

Hi @matho-odoo 👋,

Here is a first review of your code. There are some little things to correct. It is almost about odoo coding guidelines. The naming is very important because it helps use to understand the main topic of the code. For example, having a file named estate_property_tag_views will help us to understand that the file only contains views related to the estate.property.tag model.

And you should add a title and a title to your PR. The title must have the same structure than your commits ->[IMP/ADD/... ] app: what the PR is doing. And for the description and should be mainly why you do the PR not how you do it, it is the same for the commits.

Move at your own pace, don't care about the one of the others. It seems that you want to understand what going on inside the framework code and that's very good!

Thanks for you job 😃 !

@@ -0,0 +1 @@
from . import estate_property No newline at end of file
Copy link

@alan-odoo alan-odoo Oct 21, 2025

Choose a reason for hiding this comment

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

The blank line at the end of the file is missing. All your files must have one 😃.

</menuitem>
</menuitem>
</data>
</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.

Same here.

</record>

</data>
</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.

Same here.

@@ -0,0 +1 @@
from . import models 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.

Same here.

'views/estate_property_views.xml',
'views/estate_menus.xml',
]
} 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.

Same here.

<field name="search_view_id" ref="perso_recherche"/>
</record>

<record id="perso_colonnes" model="ir.ui.view">

Choose a reason for hiding this comment

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

The id should be estate_property_view_form. The naming for the view is <model_name>view<view_type>.

<field name="selling_price"/>
<field name="date_availability"/>
</list>
</field>

Choose a reason for hiding this comment

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

Be careful with the indentation 😃

Comment on lines +60 to +63
</sheet>
</form>
</field>
</record>

Choose a reason for hiding this comment

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

Something fail with the indentation. It comes from the starting form tag. The code underneath is also impacted.

</field>
</record>

<record id="perso_recherche" model="ir.ui.view">

Choose a reason for hiding this comment

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

The id should be estate_property_search.

Comment on lines 1 to 4
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.


Choose a reason for hiding this comment

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

Those lines are not required anymore. You can still see it in a lot of manifests but it is because they have been created long time ago.

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