-
Notifications
You must be signed in to change notification settings - Fork 3.1k
vibad - technical trainning #1239
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
nausicaa73
wants to merge
21
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-tutorials-vibad
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
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
11a9e65
[ADD] Chapitre 3
e8c4542
[ADD] Chapitre 4
ebe26b3
[ADD] Chapitre 5 Menus
760eba1
[CLN] clean style
86dbba3
[ADD] Chapitre 5
842b9fb
[ADD] Chapitre 6
d3a2e67
[FIX] estate: remove unlink permission for base users
vandroogenbd 0eeb0b0
[ADD] Chapitre 7 + lisence
45320c8
[FIX] estate : remove all unlink permission for base users
b2e44d5
[MERGE] merge with github
7ab1515
[CLN] remove useless blanc
c4f1032
[ADD] Chapitre 10
0895297
[FIX] Sold/cancel status could be change + validity doesn't change de…
e5985e4
[ADD] chapitre 11
bce8978
[ADD] Chapiter 12
bf2cafe
[CLN] remove warning and blank
867cbfe
[ADD] Chapiter 13 + PR fix
9061548
[CLN] clean blank, print and indentation
8d99e23
[IMP] estate: add basic test cases
vandroogenbd 5dd56af
[ADD] chapiter 14 + resolve test
a43be70
[ADD] code review changements + js chapiter 1-6
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,12 @@ | ||
| { | ||
| 'name': 'estate', | ||
| 'depends': [ | ||
| 'base' | ||
| ], | ||
| 'installable': True, | ||
|
nausicaa73 marked this conversation as resolved.
|
||
| 'application': True, | ||
| 'author': 'vibad', | ||
| 'data': ['security/ir.model.access.csv', 'view/estate_property_views.xml', 'view/estate_action.xml'] | ||
|
|
||
|
|
||
|
nausicaa73 marked this conversation as resolved.
Outdated
|
||
| } | ||
|
nausicaa73 marked this conversation as resolved.
Outdated
|
||
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 | ||
|
nausicaa73 marked this conversation as resolved.
Outdated
|
||
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,21 @@ | ||
| from odoo import models, fields | ||
|
|
||
| class Estate_property(models.Model): | ||
|
nausicaa73 marked this conversation as resolved.
|
||
| _name = "estate_property" | ||
|
nausicaa73 marked this conversation as resolved.
Outdated
|
||
| _description = "APP super mega trop bien" | ||
|
|
||
| name = fields.Char(required=True) | ||
|
nausicaa73 marked this conversation as resolved.
|
||
| 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(string='Orientation', | ||
|
nausicaa73 marked this conversation as resolved.
Outdated
|
||
| selection=[('notrh', 'Notrh'), ('south', 'South'), ('east', 'East'), ('west', 'West')], | ||
| help="The garden orientation") | ||
|
nausicaa73 marked this conversation as resolved.
Outdated
nausicaa73 marked this conversation as resolved.
Outdated
|
||
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 | ||
| acces_estate_property,acces_estate_property,model_estate_property,base.group_user,1,1,1,1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same empty line comment |
||
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"?> | ||
| <odoo> | ||
| <menuitem id="estate_root" name="Real Estate"> | ||
| <menuitem id="Advertisements_level_menu" name="Advertisements"> | ||
| <menuitem id="estate_property_menu_action" action="estate_property_action"/> | ||
|
nausicaa73 marked this conversation as resolved.
|
||
| </menuitem> | ||
| </menuitem> | ||
| </odoo> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same empty line comment |
||
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"?> | ||
| <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> | ||
| </odoo> | ||
|
nausicaa73 marked this conversation as resolved.
Outdated
|
||
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.