Skip to content

19.0 tutorials- Server framework 101 ( PIKRI )#1355

Draft
Piyush11204 wants to merge 16 commits into
odoo:19.0from
odoo-dev:19-tutorial-pikri
Draft

19.0 tutorials- Server framework 101 ( PIKRI )#1355
Piyush11204 wants to merge 16 commits into
odoo:19.0from
odoo-dev:19-tutorial-pikri

Conversation

@Piyush11204

@Piyush11204 Piyush11204 commented Jul 2, 2026

Copy link
Copy Markdown

This PR contains my work on the Real Estate module from the Server Framework 101 tutorial.

It includes the property, property type, tag, and offer models, along with their fields and relationships. It also adds the required views, menus, actions, access rights, and the business logic implemented throughout the tutorial.

This PR covers the changes made while progressing through the Server Framework 101 chapters.

@robodoo

robodoo commented Jul 2, 2026

Copy link
Copy Markdown

Pull request status dashboard

Clean up coding style issues in the estate module to improve code
consistency and comply with the expected linting conventions.

Adjust formatting and code structure without changing the existing
functional behavior.
Resolve linting errors reported in the estate module and adjust the
affected code to comply with the expected coding standards.

These changes improve code quality without modifying the functional
behavior of the module.
Add access control rules for the estate property model to define the
required permissions for creating, reading, updating, and deleting
property records.

This makes the model accessible through the application while
following Odoo's model security mechanism.
Fix the remaining code quality and formatting issues identified in
the estate module.

Clean up the affected code to maintain consistency with the expected
coding and linting conventions.
Correct spacing and formatting inconsistencies in the estate module
to improve readability and comply with the expected coding style.

This change only affects code formatting and does not alter existing
functionality.
@Piyush11204 Piyush11204 closed this Jul 3, 2026
@Piyush11204 Piyush11204 reopened this Jul 3, 2026
Add the initial estate property model with the core fields required
to represent and manage real estate properties.

Define the basic property attributes and model structure needed as
the foundation for the estate application.
Add the initial user interface for managing estate properties,
including the required property views, window action, and menu
entries.

This makes property records accessible and manageable directly from
the estate application.
Set the default number of bedrooms for estate properties and correct
the default computation of the availability date.

This ensures newly created property records are initialized with the
expected default values.
Improve the estate property interface with a more detailed form
layout and additional search options.

Organize property information for better readability and provide
search capabilities that make property records easier to find and
manage.
Add a dedicated search filter for expensive properties to make it
easier to identify records matching the configured price criteria.

This extends the property search view with an additional filtering
option for more efficient property management.
Add property type and property tag models to provide structured
classification of estate properties.

Integrate the new relational fields into the property model and
enhance the property form so users can assign types and tags while
managing property records.
Fix the linting issues reported by Runbot in the estate module and
adjust the affected code to comply with the expected coding
standards.

This ensures the module passes the automated code quality checks
without changing its functional behavior.
@Piyush11204
Piyush11204 force-pushed the 19-tutorial-pikri branch 2 times, most recently from 8ce52d1 to 24e0f40 Compare July 9, 2026 12:13
Add the estate property offer model to represent offers submitted
for individual properties.

Establish the relationship between properties and their offers and
integrate offer management into the property form for convenient
access to associated offer records.
Correct the readonly configuration of the property_id field in the
estate property offer model.

This ensures the property relationship behaves as intended when
offers are created and managed through the property form.
@Piyush11204
Piyush11204 requested a review from bit-odoo July 20, 2026 04:37

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

Hello @Piyush11204
Good Start!

First, can you please improve all your commit titles and add the message as well?
And you have left many unneccary empty lines.

Also, improve the PR title and description.

Thanks

Comment thread estate/models/estate_property.py Outdated
date_availability = fields.Date(
copy=False, default=lambda self: fields.Date.add(fields.Date.today(), 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.

unneccary empty line.

Comment thread estate/models/estate_property.py Outdated

expected_price = fields.Float(required=True)
selling_price = fields.Float(readonly=True, copy=False)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unneccary empty line.

Comment thread estate/models/estate_property.py Outdated
bedrooms = fields.Integer(default=2)
living_area = fields.Integer()
facades = fields.Integer()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unneccary empty line.

Comment thread estate/models/estate_property.py Outdated
garage = fields.Boolean()
garden = fields.Boolean()
garden_area = fields.Integer()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unneccary empty line.

<field name="name">Property Tags</field>
<field name="res_model">estate.property.tag</field>
<field name="view_mode">list,form</field>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unneccary empty line.

Comment thread estate/views/estate_property_views.xml Outdated
Comment on lines +53 to +55



Copy link
Copy Markdown

Choose a reason for hiding this comment

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

unneccary empty lines.

@Piyush11204 Piyush11204 changed the title Add initial Real Estate tutorial module 19.0 tutorials- Server framework 101 ( PIKRI ) Jul 20, 2026
@Piyush11204
Piyush11204 force-pushed the 19-tutorial-pikri branch 3 times, most recently from 912875e to 3897a20 Compare July 21, 2026 08:58
@Piyush11204

Copy link
Copy Markdown
Author

Hello @Piyush11204 Good Start!

First, can you please improve all your commit titles and add the message as well? And you have left many unneccary empty lines.

Also, improve the PR title and description.

Thanks

Hello Sir,

Thank you for reviewing my PR. I have fixed all the changes you suggested

  1. Updated the title and description for the PR.
  2. Added more detailed and clean commit messages.
  3. Removed all the unnecessary empty lines from the code.

Thank you.

Clean up unnecessary whitespace and improve formatting across the
property and offer models, menus, and views.

This refactoring improves code readability and consistency without
changing any existing functionality or behavior.

Related PR: odoo#1355
Signed-off-by: Piyush Yadav<pikri@odoo.com>
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