Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ADD] estate: new estate module #324

Open
wants to merge 6 commits into
base: 18.0
Choose a base branch
from

Conversation

apri-odoo
Copy link

  • introduced new estate module

@robodoo
Copy link

robodoo commented Feb 6, 2025

Pull request status dashboard

@@ -0,0 +1 @@
from . import models

Choose a reason for hiding this comment

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

Add a blank line at the end of the file

@@ -0,0 +1,15 @@
{
'name': 'Estate',
'version':'1.0.0',

Choose a reason for hiding this comment

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

Suggested change
'version':'1.0.0',
'version':'1.0',

'version':'1.0.0',
'depends': ['base'],
'description': """
This is a base version of the Estate module for real estate management.

Choose a reason for hiding this comment

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

Suggested change
This is a base version of the Estate module for real estate management.
This is a base version of the Estate module for real estate management.

Comment on lines 12 to 14
'installable': True,
'application': True,
'auto_install': False,

Choose a reason for hiding this comment

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

Suggested change
'installable': True,
'application': True,
'auto_install': False,
'application': True,

installable is True by default no need to add it explicitely
auto_install is only useful when you have other modules as dependencies, it makes no sense here.

Comment on lines 16 to 17
garage = fields.Boolean()
garden = fields.Boolean()

Choose a reason for hiding this comment

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

Suggested change
garage = fields.Boolean()
garden = fields.Boolean()
is_garage = fields.Boolean()
is_garden = fields.Boolean()

Try to define boolean fields in this way which make it more readable and easy to code.

-ADD- estate models
-ADD- __init_.py
-ADD- estate_property.py
-ADD- estate security
-ADD- ir.model.access.csv
-ADD- link this csv to esate/__manifest__.py
-Introduce security so that we can manage who can access that models.
-In security ;add two file one is .CSV & another one is .XML
-Introduce views ;define properties and menu's
-upgrade XML file with list,form,view
-[FIX] Replaced 'status' with 'state' in estate_property_views.xml.
_description = "Real Estate Property"

name = fields.Char(required=True)
# active field define here

Choose a reason for hiding this comment

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

Suggested change
# active field define here


name = fields.Char(required=True)
# active field define here
active = fields.Boolean(string="Active",default=True)

Choose a reason for hiding this comment

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

Suggested change
active = fields.Boolean(string="Active",default=True)
active = fields.Boolean(string="Active", default=True)

when we define a field with more than one parameters add a space between them to make it clear

Comment on lines 43 to 48
<group>
<h1>
<field name="name"/>
</h1>
</group>
<newLine/>

Choose a reason for hiding this comment

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

Suggested change
<group>
<h1>
<field name="name"/>
</h1>
</group>
<newLine/>
<h1>
<field name="name"/>
</h1>

Try to avoid unnecessary tags. when we give h1 under group it will again remove the label than why to add it.

<field name="bedrooms" string="Bedrooms" />
<field name="living_area" string="Living Area (sqm)" />
<field name="facades" string="Facades" />
<filter name="state" string="Available" domain="['|',('state', '=', 'new'), ('state' , '=' , 'offer_accept')]"/>

Choose a reason for hiding this comment

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

Suggested change
<filter name="state" string="Available" domain="['|',('state', '=', 'new'), ('state' , '=' , 'offer_accept')]"/>
<filter name="state" string="Available" domain="['|',('state', '=', 'new'), ('state' , '=' , 'offer_accept')]"/>

try to do this without | operator.

-add the Real Estate Property Type table.
-add the buyer and the salesperson.
-introduce property tag and offers
-add  total price calculate from living & garden area using compute.
-add best offer from maximum price.
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