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: create an estate app #333

Draft
wants to merge 5 commits into
base: 18.0
Choose a base branch
from

Conversation

pvag-odoo
Copy link

  • Created an estate application for odoo
  • Added some basic models and fields
  • Added security for the models
  • Added menu, basic views (Form and List)

@robodoo
Copy link

robodoo commented Feb 6, 2025

Pull request status dashboard

@sami-odoo
Copy link

Why does your commit has 2 authors. Remove the files not required. Please do proper commit. This pr involves changes from FlorianGilbert as well.

"views/estate_property_views.xml",
"views/estate_menus.xml"
],
"depends" : [ 'base_setup']

Choose a reason for hiding this comment

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

Suggested change
"depends" : [ 'base_setup']
"depends": ['base_setup']

Choose a reason for hiding this comment

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

The keys of this manifest file not properly ordered. Take the help of codebase to understand the order in which we write things in manifest


class EstateProperty(models.Model):
_name = "estate.property"
_description = "Estate Property"

Choose a reason for hiding this comment

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

Suggested change
_description = "Estate Property"
_description = "Estate Property"

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

Choose a reason for hiding this comment

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

Suggested change

<menuitem id="test_model_menu_action" action="estate_property_actions"/>
</menuitem>
</menuitem>

Choose a reason for hiding this comment

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

Suggested change

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>

Choose a reason for hiding this comment

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

Suggested change

<?xml version="1.0" encoding="UTF-8"?>

<odoo>

Choose a reason for hiding this comment

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

Suggested change

@pvag-odoo pvag-odoo force-pushed the 18.0-tutorials-pvag branch from 9dbd80c to e90c074 Compare February 7, 2025 09:15
@pvag-odoo
Copy link
Author

@sami-odoo All the changes are done. Thank you for informing.

@pvag-odoo pvag-odoo force-pushed the 18.0-tutorials-pvag branch 4 times, most recently from d26bf35 to cc6e23a Compare February 7, 2025 12:39
- Created an estate application for odoo
- Added some basic models and fields
- Added security for the models
- Added menu, basic views (Form and List)
@pvag-odoo pvag-odoo force-pushed the 18.0-tutorials-pvag branch from cc6e23a to 4ad362d Compare February 7, 2025 12:42
• Added list, form, search view to the estate app
• Added filters and group by options to the estate app

Choose a reason for hiding this comment

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

no new line at the end of file

Choose a reason for hiding this comment

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

Your external id should have a proper name which indicates what the menu is created for.

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<menuitem id="test_menu_root" name="Estate">

Choose a reason for hiding this comment

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

For eg:

Suggested change
<menuitem id="test_menu_root" name="Estate">
<menuitem id="estate_menu_root" name="Estate">

<field name="name">Properties</field>
<field name="res_model">estate.property</field>
<field name="view_mode">list,form</field>
</record>

Choose a reason for hiding this comment

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

Suggested change
</record>
</record>

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

Choose a reason for hiding this comment

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

Suggested change
</record>
</record>

</sheet>
</form>
</field>
</record>

Choose a reason for hiding this comment

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

Suggested change
</record>
</record>

Choose a reason for hiding this comment

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

Different records must have a valid amount of space between the records

@@ -0,0 +1,12 @@
{
"name": "estate",

Choose a reason for hiding this comment

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

Suggested change
"name": "estate",
"name": "Real Estate",

Choose a reason for hiding this comment

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

When we create a views folder then what do we do is usually keep the record of the action window above the record of views

- Added estate_property_tag, estate_property_type, estate_property_offer models.
- Added  Many2one, Many2many, One2many relations between different models in the
estate app.
• Added computed fields to dynamically calculate values in the Real Estate
module.
• Implemented @api.onchange methods to update fields based on user input.
• Enhanced model logic to improve data consistency and automation.
• Added Accept and Reject actions for property offers.
• Updated property status when an offer is accepted.
• Set buyer and selling price on property upon offer acceptance.
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