-
Notifications
You must be signed in to change notification settings - Fork 2.6k
VIDEC Onboarding #1001
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
Open
vicire1
wants to merge
12
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-onboarding-videc
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.
Open
VIDEC Onboarding #1001
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e80c6c5
[ADD] Estate: create the app
vicire1 fd2f7fe
[IMP] Estate: Creating table fields
vicire1 5de3bd0
[IMP] Grant access group user
vicire1 91dd74d
[FIX] Add licence and correct style
vicire1 4c753f0
[IMP] Create views
vicire1 0511d8e
[IMP] Create tag, offer, type with according views
vicire1 6555736
[FIX] Changing inverse one2many to property_id
vicire1 703064a
[IMP] Adding computed fields
vicire1 ef99a27
[IMP] Creating buttons
vicire1 9472ca1
[IMP] estate: Add notes.
dery-odoo d5bb3d6
[IMP] Adding constraints on fields
vicire1 3c937ef
[FIX] estate: remove notes.
dery-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
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,22 @@ | ||
{ | ||
'name': "estate", | ||
'version': '1.0', | ||
'depends': ['base'], | ||
'author': "Victor Decleire", | ||
'application': True, | ||
'license': "LGPL-3", | ||
# 'description': """ | ||
# Description text | ||
# """, | ||
# # data files always loaded at installation | ||
'data': [ | ||
'security/ir.model.access.csv', | ||
|
||
'views/estate_property_views.xml', | ||
'views/estate_menus.xml', | ||
], | ||
# # data files containing optionally loaded demonstration data | ||
# 'demo': [ | ||
# 'demo/demo_data.xml', | ||
# ], | ||
} |
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,23 @@ | ||
from odoo import fields, models | ||
from odoo.tools.date_utils import add | ||
|
||
|
||
class EstateProperty(models.Model): | ||
_name = "estate.property" | ||
_description = "Real estate propreties" | ||
|
||
name = fields.Char(required=True) | ||
description = fields.Text() | ||
postcode = fields.Char() | ||
date_availability = fields.Date(copy=False, default=lambda x: add(fields.Date.today(), months=3)) | ||
expected_price = fields.Float() | ||
selling_price = fields.Float(required=True, readonly=True, copy=False) | ||
bedrooms = fields.Integer(default=2) | ||
living_area = fields.Integer() | ||
facades = fields.Integer() | ||
garage = fields.Boolean() | ||
garden = fields.Boolean() | ||
garden_area = fields.Float() | ||
garden_orientation = fields.Selection( | ||
selection=[('north', 'North'), ('south', 'South'), ('west', 'West'), ('east', 'East')] | ||
) |
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_group_user,estate.group.user,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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<menuitem id="estate_menu_root" name="Real Estate"> | ||
<menuitem id="estate_first_level_menu" name="Homes"> | ||
<menuitem id="estate_model_menu_action" action="estate_property_model_action"/> | ||
</menuitem> | ||
</menuitem> | ||
</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,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="estate_property_model_action" model="ir.actions.act_window"> | ||
<field name="name">Test action</field> | ||
<field name="res_model">estate.property</field> | ||
<field name="view_mode">list,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.
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.
End of file newline missing