-
Notifications
You must be signed in to change notification settings - Fork 2.9k
19.0 tutorials viwar #1168
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
VIWAR-ODOO
wants to merge
18
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-tutorials-viwar
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 viwar #1168
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
2604af7
[ADD] added estate module
VIWAR-ODOO d82ef23
[FIX] delete test data
VIWAR-ODOO 51763b2
[FIX] added application true and installable as true
VIWAR-ODOO dbcbc7a
[FIX] formate change of manifest file
VIWAR-ODOO 1b9af85
[FIX] removed duplicate author fiels inthe manifest file
VIWAR-ODOO 265e0f4
[FIX] style error removed white spaces
VIWAR-ODOO 0aaabf0
[FIX] no newline error in style fixed removed extra comma
VIWAR-ODOO 5a196fc
[FIX] formated code
VIWAR-ODOO e97eeb1
[FIX] style error
VIWAR-ODOO 2e78623
[FIX] new line at end , fix error no new newline at the end
VIWAR-ODOO 21041c2
[CLN] remove description
VIWAR-ODOO 828ecf1
[FIX] restyle for test case eror
VIWAR-ODOO c2e6a0c
[ADD] added estate_property.py model
VIWAR-ODOO dc89be2
[IMP] estate: Update estate/models/estate_property.py
VIWAR-ODOO 0134897
[IMP] estate : added extra line
VIWAR-ODOO 7955c6a
[IMP] estate: Update estate/models/estate_property.py
VIWAR-ODOO 230f419
[IMP] estate: removed <data> tag , and added "
VIWAR-ODOO 02685cc
[ADD] estate: added the form view and a notebook and added two tabs i…
VIWAR-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
Some comments aren't visible on the classic Files Changed page.
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
| 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,17 @@ | ||
| { | ||
| 'name': 'Real Estate', | ||
| 'version': '1.0', | ||
| 'depends': ['base'], | ||
| 'author': 'viwar-odoo', | ||
| 'category': 'real estate', | ||
| 'description': "real estate App.", | ||
| 'data': [ | ||
| 'security/ir.model.access.csv', | ||
| 'views/estate_property_views.xml', | ||
| 'views/estate_menus.xml' | ||
| ], | ||
| 'application': True, | ||
| 'installable': True, | ||
| 'license': 'LGPL-3', | ||
VIWAR-ODOO marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| 'website': 'https://odoo.com', | ||
| } | ||
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 |
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,43 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class EstateProperty(models.Model): | ||
| _name = "estate.property" | ||
| _description = "Test Model for real estate" | ||
|
|
||
| name = fields.Char(default="Unknown") | ||
| last_seen = fields.Datetime("Last Seen", default=fields.Datetime.now) | ||
| description = fields.Text() | ||
| postcode = fields.Char() | ||
VIWAR-ODOO marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| date_availability = fields.Date( | ||
| copy=False, default=fields.Date.add(fields.Date.today(), months=3) | ||
| ) | ||
| expected_price = fields.Float() | ||
| selling_price = fields.Float(copy=False, readonly=True) | ||
| bedrooms = fields.Integer(default=2) | ||
| living_area = fields.Integer() | ||
| facades = fields.Integer() | ||
| garage = fields.Boolean() | ||
| garden = fields.Boolean() | ||
| state = fields.Selection( | ||
| string="status", | ||
| selection=[ | ||
| ('new', "New"), | ||
| ('offer received', "Offer Received"), | ||
| ('offer accepted', "Offer Accepted"), | ||
| ('sol', "Sold"), | ||
| ('cancelled', "Cancelled"), | ||
| ], | ||
| default='new', | ||
| ) | ||
| active = fields.Boolean(default=True) | ||
| garden_area = fields.Integer() | ||
| garden_orientation = fields.Selection( | ||
| string="garden orientation direction", | ||
| selection=[ | ||
| ('north', "North"), | ||
| ('south', "South"), | ||
| ('east', "East"), | ||
| ('west', "West"), | ||
| ], | ||
| ) | ||
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,2 @@ | ||
| 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 |
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,19 @@ | ||
| <?xml version="1.0"?> | ||
| <odoo> | ||
| <data> | ||
VIWAR-ODOO marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <menuitem id="test_menu_root" name="Real Estate"> | ||
| <menuitem id="first_level_menu" name="menu"> | ||
| <!-- __experimented a bit , if we remove the name from the menu item then it will use the id as name --> | ||
| <menuitem id="decond_level_menu" name="second menu"> | ||
| <!-- experimented , if we remove the name from the menu item then it will use the action"s name as name --> | ||
| <menuitem id="test_model_menu_action" name="property" action="estate_model_action"/> | ||
| </menuitem> | ||
| </menuitem> | ||
|
|
||
| <!-- #experimental added extra direct menu for learning--> | ||
| <menuitem id="direct_property_menu" name="property" action="estate_model_action"/> | ||
| <!----> | ||
|
|
||
| </menuitem> | ||
| </data> | ||
| </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,62 @@ | ||
| <?xml version="1.0"?> | ||
| <odoo> | ||
| <record id="estate_model_action" model="ir.actions.act_window"> | ||
| <field name="name">Real-estate Property"s</field> | ||
| <field name="res_model">estate.property</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
| <record id="estate_property_list_view" model="ir.ui.view"> | ||
| <field name="name">estate.property.list.view</field> | ||
| <field name="model">estate.property</field> | ||
| <field name="arch" type="xml"> | ||
| <list string="Tests"> | ||
| <field name="name"/> | ||
| <field name="last_seen"/> | ||
| <field name="bedrooms"/> | ||
| </list> | ||
| </field> | ||
| </record> | ||
| <record id="estate_property_form_view" model="ir.ui.view"> | ||
| <field name="name">estate.property.form.view</field> | ||
| <field name="model">estate.property</field> | ||
| <field name="arch" type="xml"> | ||
| <form string="Test"> | ||
| <sheet> | ||
| <group> | ||
| <group> | ||
| <field name="name"/> | ||
| </group> | ||
| <group> | ||
| <field name="last_seen"/> | ||
| </group> | ||
| </group> | ||
| <notebook> | ||
| <page string="Description"> | ||
| <group> | ||
| <field name="postcode"/> | ||
| <field name="date_availability"/> | ||
| <field name="expected_price"/> | ||
| <field name="selling_price"/> | ||
| <field name="bedrooms"/> | ||
| <field name="living_area"/> | ||
| <field name="facades"/> | ||
| <field name="garage"/> | ||
| <field name="state"/> | ||
| <field name="garden_area"/> | ||
| <field name="garden_orientation"/> | ||
|
|
||
| </group> | ||
| </page> | ||
| <page string="others"> | ||
| <group> | ||
| <field name="description"/> | ||
| <field name="active"/> | ||
| </group> | ||
| </page> | ||
|
|
||
| </notebook> | ||
| </sheet> | ||
| </form> | ||
| </field> | ||
| </record> | ||
| </odoo> |
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.
Uh oh!
There was an error while loading. Please reload this page.