-
Notifications
You must be signed in to change notification settings - Fork 3.1k
qugeo - Technical Training #1208
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
qugeo-odoo
wants to merge
75
commits into
odoo:19.0
Choose a base branch
from
odoo-dev:19.0-tutorials-qugeo
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 8 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
684e72d
[ADD] estate - Chapter 2 - add estate module
qugeo-odoo 136d6ae
[MOV] estate : fix module init file name
qugeo-odoo e1b1c09
[IMP] estate: Chapter 3 - add estate property model
qugeo-odoo 4eef21d
[IMP] estate : Chapter 4 - add access rights to esate property model
qugeo-odoo 763d86b
[IMP] estate: add license
qugeo-odoo cce883f
[IMP] estate: Chapter 5 - add menus and related action
qugeo-odoo b81747c
[FIX] estate : fix dot notation of module name
qugeo-odoo 31f25f2
[IMP] estate : Chapter 5 - add new fields and attributes to the model
qugeo-odoo 78b121d
[IMP] estate: Chapter 6 - add form and list views for properties
qugeo-odoo bf131bb
[IMP] estate: Chapter 6 - Add search view for properties with availab…
qugeo-odoo 87dc5e1
[FIX] estate: rename menu items
qugeo-odoo ed135b9
[IMP] estate: Chapter 7 - Add property types, tags and offers
qugeo-odoo c5896c9
[CLN] estate: remove extra spaces and fix quote usage
qugeo-odoo fde75c1
[FIX] estate: set Odoo as author
qugeo-odoo eceb38a
[FIX] estate: move string attributes from views to models
qugeo-odoo ad9f755
[FIX] estate: remove redundant module ref in access rules
qugeo-odoo 4ba968b
[IMP] estate: Chapter 8 - Add validty and deadline to offers, add bes…
qugeo-odoo c9e118f
[IMP] estate: Chapter 9 - Add action button on properties and offers …
qugeo-odoo 25ca60d
[IMP] estate: Chapter 10 - Add constraints on expected price, selling…
qugeo-odoo 8c502aa
[CLN] estate: fix quote usage
qugeo-odoo e9c1197
[IMP] estate: Chapter 11 - Add in-line list view in property type for…
qugeo-odoo c725a00
[IMP] estate: remove cancelled state from the status bar in property …
qugeo-odoo d1ecd37
[IMP] estate: Add default ordering to property, type, tag and offer m…
qugeo-odoo c92c716
[IMP] estate: Add property type list view with manual ordering
qugeo-odoo 79c8456
[IMP] estate: Add color picker to tags and prevent creation and editi…
qugeo-odoo 8130698
[IMP] estate: use manual ordering in the default ordering of property…
qugeo-odoo 37d08bd
[IMP] estate: Hide property and offer buttons based on state. Hide ga…
qugeo-odoo c164e22
[IMP] estate: add tag list view and make the offer and tag list views…
qugeo-odoo 690b668
[IMP] estate: Make date availability optional in list view
qugeo-odoo d907b0e
[IMP] estate: Add list decorations to properties and offers based on …
qugeo-odoo c5f1ec4
[IMP] estate: add available properties as a default filter on the pro…
qugeo-odoo 2144550
[IMP] estate: Add filter domain for living area in property search
qugeo-odoo f3b2b89
[IMP] estate: Add related offer smart button in property type list view.
qugeo-odoo b89b0f1
[IMP] estate: Chapter 12 - prevent offer creation if price is inferio…
qugeo-odoo 05d2281
[IMP] estate: add property type and tags to property list view
qugeo-odoo 448d9a2
[IMP] estate: extend res.user model and view with available properties
qugeo-odoo 068ced1
[ADD] estate_account: Create Estate Account module to enable property…
qugeo-odoo 9783a74
[IMP] estate: Chapter 14 - Add kanban view for properties
qugeo-odoo 7c8adb2
[CLN] estate: Chapter 5 - Merge view files together
qugeo-odoo de60394
[CLN] estate_account: remove print and unused import
qugeo-odoo 48677c5
[CLN] estate & estate_account: rename actions
qugeo-odoo f96ac94
[LNT] estate & estate_account
qugeo-odoo ae038fe
[LINT] estate & estate_account
qugeo-odoo 3f60fc3
[LINT] estate
qugeo-odoo 31a55cc
[LINT] estate_account
qugeo-odoo 4ab872b
[FIX] estate, estate_account: Remove module name from actions. Handle…
qugeo-odoo f61b33c
[FIX] estate: Name model resUsers
qugeo-odoo 50c914d
[FIX] estate_account: Name model EstateProperty
qugeo-odoo 1adfd0f
[CLN] estate: reorder code blocks, fix quotes
qugeo-odoo 382394e
[CLN] estate, estate_account: fix quotes
qugeo-odoo e1ead19
[CLN] estate: reorder code blocks
qugeo-odoo 87a9d48
[CLN] estate: delete if parenthesis
qugeo-odoo cc7e197
[CLN] estate: Import exceptions directly
qugeo-odoo 382fb8a
[CLN] estate: simplify action logic
qugeo-odoo 80a6f15
[IMP] estate: Add error translations
qugeo-odoo 2d95f74
[CLN] estate: use set instead of array in condition
qugeo-odoo ba2ff87
[CLN] estate_account: Remove redundant base module dependency
qugeo-odoo 3a62dc3
[CLN] estate: Fix quotes in xml
qugeo-odoo 7567d2e
[CLN] estate: add missing trailing comma
qugeo-odoo 6f4d863
[CLN] estate: simplify action logic
qugeo-odoo 8dec08e
[IMP] awewsome_owl: Chapter 1 - Add counter
qugeo-odoo b06f16e
[IMP] awewsome_owl: Chapter 2
qugeo-odoo c6df338
[IMP] awewsome_owl: Chapter 3
qugeo-odoo 89b89ed
[IMP] awewsome_owl: Chapter 4
qugeo-odoo bce1ecf
[IMP] awewsome_owl: Chapter 5
qugeo-odoo 821297f
[IMP] awewsome_owl: Chapter 6
qugeo-odoo b9385e8
[IMP] awewsome_owl: Chapter 7
qugeo-odoo 2fef72d
[IMP] awewsome_owl: Chapter 8
qugeo-odoo ee549a5
[IMP] awewsome_owl: Chapter 10
qugeo-odoo 2a175f9
[IMP] awewsome_owl: Chapter 11
qugeo-odoo 06eb246
[IMP] awewsome_owl: Chapter 12
qugeo-odoo f052144
[IMP] awewsome_owl: Chapter 13
qugeo-odoo 6654b14
[IMP] awewsome_owl: Chapter 14
qugeo-odoo ffe5ca4
[IMP] awewsome_dashboard: Chapter 4
qugeo-odoo e898cac
[IMP] awewsome_dashboard: Chapter 5
qugeo-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,2 @@ | ||
|
|
||
| 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,15 @@ | ||
| { | ||
| 'name': "estate", | ||
| 'author': 'qugeo', | ||
| 'depends': ['base'], | ||
| 'application': True, | ||
|
|
||
|
|
||
| 'license': "LGPL-3", | ||
|
|
||
| 'data' : [ | ||
| "security/ir.model.access.csv", | ||
| "views/estate_property_views.xml", | ||
| "views/estate_menus.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,2 @@ | ||
|
|
||
|
qugeo-odoo marked this conversation as resolved.
Outdated
|
||
| 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,31 @@ | ||
| from odoo import fields, models | ||
|
|
||
| class EstateProperty(models.Model): | ||
| _name = "estate.property" | ||
|
qugeo-odoo marked this conversation as resolved.
Outdated
|
||
| _description = "Estate properties" | ||
|
|
||
| active = fields.Boolean(default=True) | ||
| state = fields.Selection([ | ||
| ("new","New"), | ||
| ("offer_received","Offer Received"), | ||
| ("offer_accepted","Offer Accepted"), | ||
| ("sold","Sold"), | ||
| ("cancelled","Cancelled"), | ||
| ]) | ||
|
|
||
| name = fields.Char(required=True) | ||
| description = fields.Text() | ||
| postcode = fields.Char() | ||
| date_availability = fields.Date(copy=False, default=lambda self: fields.Date.add(fields.Date.today(), months=3) ) | ||
| expected_price = fields.Float(required=True) | ||
| selling_price = fields.Float(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.Integer() | ||
| garden_orientation = fields.Selection( | ||
| 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 | ||
| estate.access_estate_property,access_estate_property,estate.model_estate_property,base.group_user,1,1,1,1 |
|
qugeo-odoo marked this conversation as resolved.
|
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,7 @@ | ||
| <odoo> | ||
| <menuitem id="estate_root_menu" name="Estate Root Menu"> | ||
| <menuitem id="estate_first_level_menu" name="Estate First Level Menu"> | ||
| <menuitem id="estate_property_menu_action" action="estate_property_action" name="overriden action Name"/> | ||
| </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,7 @@ | ||
| <odoo> | ||
| <record id="estate_property_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.
Uh oh!
There was an error while loading. Please reload this page.