-
Notifications
You must be signed in to change notification settings - Fork 3.1k
sevan - Technical Training #1237
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
SebVde
wants to merge
27
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-tutorials-sevan
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 2 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
eae996b
[ADD] estate: initialized Sevan Estate module
SebVde 59ab049
[ADD] estate: created Property model
SebVde 57edca3
[ADD] estate: add access rights to base.group-user
SebVde d662407
[CLN] estate: clean code following coach's comments
SebVde 47a9eac
[ADD] estate: action and menus for the module's view
SebVde d260597
[ADD] estate: create list, form and search views
SebVde d09e0fa
[ADD] estate: end-of-the-day draft for Chapter 7
SebVde 052c526
[FIX] estate: remove unlink permission for base users
vandroogenbd ad84cd3
[ADD] estate: add property type, salesman and buyer fields
SebVde a65fc53
[ADD] estate: add tags to property
SebVde 58cc017
[ADD] estate: add property type, salesman and buyer fields
SebVde d22ebc0
[ADD] estate: add tags to property
SebVde cff0075
[ADD] estate: add offers to property
SebVde 96e43bd
[ADD] estate: compute total area of property
SebVde 39728f4
[ADD] estate: compute best offer, deadline and garden values
SebVde 2cfe9bf
[ADD] estate: buttons linked to actions for property and offer
SebVde 14d9c9a
[IMP] estate: constraints on prices
SebVde 25a3e73
[ADD] estate: add attributes, options and widgets for the views
SebVde eafc4a3
[ADD] estate: add stat button in property type form
SebVde 4209cd6
[FIX] estate: add missing license
SebVde 7a8ea20
[IMP] estate: override CRUD methods, and inherit models and views
SebVde cd50a96
[ADD] estate account: add invoice creation for sold property
SebVde e703a19
[IMP] estate: add basic test cases
vandroogenbd cf25e2b
[IMP] estate: modify behavious of offer accept action
SebVde fae93ca
[IMP] estate: add kanban view for properties
SebVde 478c594
[CLN] estate: cleaning following coding guidelines
SebVde d8542bd
[CLN] estate + estate_account
SebVde 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,8 @@ | ||
| { | ||
| 'name': "Sevan Estate", | ||
| 'depends': ['base'], | ||
| 'summary': "Just a simple estate app for Sevan.", | ||
| 'application': True, | ||
| 'installable': True, | ||
| 'author': "Sevan Corp.", | ||
| } | ||
|
SebVde 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 | ||
|
SebVde 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,26 @@ | ||
| from odoo import fields, models | ||
|
|
||
| class Property(models.Model): | ||
|
SebVde marked this conversation as resolved.
Outdated
|
||
|
|
||
| # Model definition | ||
| _name = "estate.property" | ||
| _description = "Estate Property" | ||
|
|
||
| # Fields | ||
| name = fields.Char(required=True) | ||
|
SebVde marked this conversation as resolved.
Outdated
|
||
| 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', | ||
| selection=[('north', 'North'), ('south', 'South'), ('east', 'East'), ('west', 'West')] | ||
| ) | ||
|
SebVde marked this conversation as resolved.
|
||
|
|
||
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.