-
Notifications
You must be signed in to change notification settings - Fork 3.3k
19.0 tutorials karad #1364
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
Draft
karad-odoo
wants to merge
24
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-tutorials-karad
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
19.0 tutorials karad #1364
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
91e246b
[FIX] website_airproof: fix template loading order issue
omarait-mlouk f6e9016
[FIX] awesome_owl: Fix missing css variables
clbr-odoo f18cc42
[FIX] awesome_dashboard: Get rid of the deprecated warning
clbr-odoo b80f298
[ADD] estate: initialize module for real estate application
karad-odoo 1f97e5e
[CLN] estate: add manifest author and license details
karad-odoo e560927
[CLN] estate: clean up manifest configuration
karad-odoo 0f6da14
[ADD] estate: create property data model
karad-odoo 76106ec
[LINT] estate: apply standard code formatting
karad-odoo ac7022b
[ADD] estate: add user access rights for properties
karad-odoo c96f13d
[ADD] estate: add navigation menus and default record logic
karad-odoo da9b8e9
[CLN] tutorials: prevent committing personal IDE settings
karad-odoo 041b7b0
[ADD] estate: add summary list view for property listings
karad-odoo 0fed210
[FIX] estate: fix mismatched field names on property list view
karad-odoo 64a0a9a
[ADD] estate: add structured form view for property details
karad-odoo 57ac839
[ADD] estate: enable search bar functionality for properties
karad-odoo 99b1b4f
[ADD] estate: add quick filters and location grouping
karad-odoo 4729b95
[IMP] estate: prevent stale price copying on new records
karad-odoo cb0b27f
[IMP] estate: bump module version to trigger registry sync
karad-odoo 20ab864
[FIX] estate: improve search usability and form field placement
karad-odoo 62fb7a6
[REF] estate: separate menu declarations from view files
karad-odoo d69a6a7
[ADD] estate: add property type model for categorization
karad-odoo 357c527
[ADD] estate: adding property types to allow property filtering
karad-odoo cff0e08
[ADD] estate: added property types to settings menu
karad-odoo 6826887
[ADD] estate: add buyer and salesman fields to property form
karad-odoo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import models |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "name": "Estate", | ||
| "version": "1.1", | ||
| "category": "", | ||
| "summary": "", | ||
| "website": "", | ||
| "application": True, | ||
| "installable": True, | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "views/estate_property.xml", | ||
| "views/estate_property_type.xml", | ||
| "views/estate_menus.xml", | ||
| ], | ||
| "depends": ["base"], | ||
| "author": "Kaushal Radadiya", | ||
| "license": "LGPL-3", | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from . import (estate_property, estate_property_type) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class TestModel(models.Model): | ||
| _name = "estate.property" | ||
| _description = "Real Estate Property" | ||
|
|
||
| name = fields.Char(required=True) | ||
| description = fields.Text() | ||
| postcode = fields.Char() | ||
| date_availability = fields.Date() | ||
| expected_price = fields.Float(required=True) | ||
| selling_price = fields.Float() | ||
| bedrooms = fields.Integer() | ||
| living_area = fields.Integer() | ||
| facades = fields.Integer() | ||
| garage = fields.Boolean() | ||
| garden = fields.Boolean() | ||
| garden_area = fields.Integer() | ||
|
|
||
| garden_orientation = fields.Selection( | ||
| selection=[ | ||
| ("north", "North"), | ||
| ("south", "South"), | ||
| ("east", "East"), | ||
| ("west", "West"), | ||
| ], | ||
| string="Garden Orientation", | ||
| ) | ||
|
|
||
| state = fields.Selection( | ||
| selection=[ | ||
| ("new", "New"), | ||
| ("offer_received", "Offer Received"), | ||
| ("offer_accepted", "Offer Accepted"), | ||
| ("sold", "Sold"), | ||
| ("cancelled", "Cancelled"), | ||
| ], | ||
| required=True, | ||
| copy=False, | ||
| default="new", | ||
| string="Status", | ||
| ) | ||
|
|
||
| active = fields.Boolean(default=True) | ||
| property_type_id = fields.Many2one('estate.property.type', string="Property Type") | ||
| salesman_id = fields.Many2one("res.users", string="Salesman", default=lambda self: self.env.user.id) | ||
| buyer_id = fields.Many2one("res.partner", string="Buyer", copy=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class EstatePropertyType(models.Model): | ||
| _name = "estate.property.type" | ||
| _description = "Real Estate Property Type" | ||
|
|
||
| name = fields.Char(required=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
| access_estate_property,access_estate_property,model_estate_property,base.group_user,1,1,1,1 | ||
| access_estate_property_type,estate.property.type,model_estate_property_type,base.group_user,1,1,1,1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <odoo> | ||
|
|
||
| <!-- Top Menu--> | ||
| <menuitem id="estate_menu_root" | ||
| name="Real Estate"/> | ||
|
|
||
| <!-- Category Menu--> | ||
| <menuitem id="estate_first_level_menu" | ||
| name="Advertisements" | ||
| parent="estate_menu_root"/> | ||
|
|
||
| <!-- Properties Menu--> | ||
| <menuitem id="estate_property_menu_action" | ||
| name="Properties" | ||
| parent="estate_first_level_menu" | ||
| action="estate.estate_property_action"/> | ||
|
|
||
| <!-- Settings Menu--> | ||
| <menuitem id="estate_property_settings_menu" | ||
| name="Settings" | ||
| parent="estate_menu_root"/> | ||
|
|
||
| <!-- Property Type Menu--> | ||
| <menuitem id="estate_property_settings_type" | ||
| name="Property Types" | ||
| parent="estate_property_settings_menu" | ||
| action="estate.estate_property_type_actions"/> | ||
|
|
||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <odoo> | ||
| <record id="estate_property_action" model="ir.actions.act_window"> | ||
| <field name="name">Properties</field> | ||
| <field name="res_model">estate.property</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
|
|
||
| <!-- List View--> | ||
| <record id="estate_property_view_list" model="ir.ui.view"> | ||
| <field name="name">estate.property.list</field> | ||
| <field name="model">estate.property</field> | ||
| <field name="arch" type="xml"> | ||
| <list string="Properties"> | ||
| <field name="name" string="Name"/> | ||
| <field name="postcode" string="Postcode"/> | ||
| <field name="bedrooms" string="Bedrooms"/> | ||
| <field name="living_area" string="Living Area (sqm)"/> | ||
| <field name="expected_price" string="Expected Price"/> | ||
| <field name="selling_price" string="Selling Price"/> | ||
| <field name="date_availability" string="Available From"/> | ||
| <field name="state" string="State"/> | ||
| </list> | ||
| </field> | ||
| </record> | ||
|
|
||
| <!-- Form View--> | ||
| <record id="estate_property_view_form" model="ir.ui.view"> | ||
| <field name="name">estate.property.form</field> | ||
| <field name="model">estate.property</field> | ||
| <field name="arch" type="xml"> | ||
| <form string="Property"> | ||
| <sheet> | ||
| <div> | ||
| <h2> | ||
| <field name="name" placeholder="Enter Property Name"/> | ||
| </h2> | ||
| </div> | ||
| <group> | ||
| <group> | ||
| <field name="property_type_id"/> | ||
| <field name="postcode"/> | ||
| <field name="date_availability"/> | ||
| </group> | ||
| <group> | ||
| <field name="expected_price"/> | ||
| <field name="selling_price"/> | ||
| </group> | ||
| </group> | ||
| <notebook> | ||
| <page string="Description"> | ||
| <group> | ||
| <field name="description"/> | ||
| <field name="bedrooms"/> | ||
| <field name="living_area"/> | ||
| <field name="facades"/> | ||
| <field name="garage"/> | ||
| <field name="garden"/> | ||
| <field name="garden_area"/> | ||
| <field name="garden_orientation"/> | ||
| <field name="state"/> | ||
| </group> | ||
| </page> | ||
| <page string="Other Info"> | ||
| <group> | ||
| <field name="salesman_id"/> | ||
| <field name="buyer_id"/> | ||
| </group> | ||
| </page> | ||
| </notebook> | ||
| </sheet> | ||
| </form> | ||
| </field> | ||
| </record> | ||
|
|
||
| <!-- Search Filter--> | ||
| <record id="estate_property_view_search" model="ir.ui.view"> | ||
| <field name="name">estate.property.search</field> | ||
| <field name="model">estate.property</field> | ||
| <field name="arch" type="xml"> | ||
| <search> | ||
| <field name="name"/> | ||
| <field name="postcode"/> | ||
| <field name="expected_price"/> | ||
| <field name="bedrooms"/> | ||
| <field name="living_area"/> | ||
| <field name="facades"/> | ||
|
|
||
| <filter name="filter_available" string="Available" | ||
| domain="['|', ('state', '=', 'new'), ('state', '=', 'offer_received')]"/> | ||
| <filter name="group_by_postcode" string="Postcode" context="{'group_by': 'postcode'}"/> | ||
|
|
||
| </search> | ||
| </field> | ||
| </record> | ||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <odoo> | ||
| <record id="estate_property_type_actions" model="ir.actions.act_window"> | ||
| <field name="name">Properties Type</field> | ||
| <field name="res_model">estate.property.type</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
|
|
||
| <record id="estate_property_type_list" model="ir.ui.view"> | ||
| <field name="name">estate.property.type.list</field> | ||
| <field name="model">estate.property.type</field> | ||
| <field name="arch" type="xml"> | ||
| <list string="Properties Type"> | ||
| <field name="name" string="Property Type"/> | ||
| </list> | ||
| </field> | ||
| </record> | ||
|
|
||
| <record id="estate_property_type_form" model="ir.ui.view"> | ||
| <field name="name">estate.property.type.form</field> | ||
| <field name="model">estate.property.type</field> | ||
| <field name="arch" type="xml"> | ||
| <form string="Properties Type"> | ||
| <group> | ||
| <field name="name" string="Property Type"/> | ||
| </group> | ||
| </form> | ||
| </field> | ||
| </record> | ||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unneccary diff.