diff --git a/awesome_dashboard/static/src/core/statistics_service.js b/awesome_dashboard/static/src/core/statistics_service.js new file mode 100644 index 00000000000..c168b74c136 --- /dev/null +++ b/awesome_dashboard/static/src/core/statistics_service.js @@ -0,0 +1,22 @@ +import { memoize } from "@web/core/utils/functions"; +import { registry } from "@web/core/registry"; +import { rpc } from "@web/core/network/rpc"; +import { reactive } from "@odoo/owl"; + +export const statistics = { + async start() { + const data = reactive({statistics: await rpc("/awesome_dashboard/statistics")}) + + setInterval(async () => { + const getStatistics = await rpc("/awesome_dashboard/statistics"); + data.statistics = getStatistics; + console.log(data) + }, 1_000*10) + + return { + data: data + } + } +} + +registry.category("services").add("statistics", statistics) \ No newline at end of file diff --git a/awesome_dashboard/static/src/dashboard.js b/awesome_dashboard/static/src/dashboard.js index c4fb245621b..45cbe3b06b4 100644 --- a/awesome_dashboard/static/src/dashboard.js +++ b/awesome_dashboard/static/src/dashboard.js @@ -1,8 +1,48 @@ -import { Component } from "@odoo/owl"; +import { Component, onWillStart, useEffect, useState } from "@odoo/owl"; import { registry } from "@web/core/registry"; +import { Layout } from "@web/search/layout"; +import { useService } from "@web/core/utils/hooks"; +import { DashboardItem } from "./dashboard_item/dashboardItem"; +import { PieChart } from "./pie_chart/pieChart" class AwesomeDashboard extends Component { static template = "awesome_dashboard.AwesomeDashboard"; + + static components = { Layout, DashboardItem, PieChart }; + + setup() { + this.action = useService("action"); + const statistics = useService("statistics"); + + this.statisticsData = useState(statistics.data); + + + const updateData = ((data) => { + this.result = data + + this.data = Object.entries(data.orders_by_size).map(([key, value]) => ({ + label: key, + value: value + })); + }).bind(this) + + onWillStart(() => { + updateData(this.statisticsData.statistics) + }) + + useEffect(updateData, () => [this.statisticsData.statistics]) + } + openCustomers() { + this.action.doAction("base.action_partner_form"); + } + + openLeads(){ + this.action.doAction({ + type: "ir.actions.act_window", + views: [[false, "list"], [false, 'form']], + res_model: "crm.lead", + }) + } } registry.category("actions").add("awesome_dashboard.dashboard", AwesomeDashboard); diff --git a/awesome_dashboard/static/src/dashboard.scss b/awesome_dashboard/static/src/dashboard.scss new file mode 100644 index 00000000000..f67f7dcc183 --- /dev/null +++ b/awesome_dashboard/static/src/dashboard.scss @@ -0,0 +1,3 @@ +.o_dashboard { + background-color: #edfffb; +} \ No newline at end of file diff --git a/awesome_dashboard/static/src/dashboard.xml b/awesome_dashboard/static/src/dashboard.xml index 1a2ac9a2fed..0233a7c926e 100644 --- a/awesome_dashboard/static/src/dashboard.xml +++ b/awesome_dashboard/static/src/dashboard.xml @@ -1,8 +1,43 @@ - - hello dashboard + + + + + +
+ + Average amount of t-shirt by order this month + + + + Average time for an order to go from 'new' to 'sent' or 'cancelled' + + + + Number of new orders this month + + + + Number of cancelled orders this month + + + + Total amount of new orders this month + + + + Shirt orders by size + + + + +
+
-
diff --git a/awesome_dashboard/static/src/dashboard_item/dashboardItem.js b/awesome_dashboard/static/src/dashboard_item/dashboardItem.js new file mode 100644 index 00000000000..f4807266145 --- /dev/null +++ b/awesome_dashboard/static/src/dashboard_item/dashboardItem.js @@ -0,0 +1,14 @@ +import { Component } from "@odoo/owl"; + +export class DashboardItem extends Component { + static template = "awesome_dashboard.DashboardItem"; + + static props = { + size: {type: Number, optional: true}, + slots: { type: Object, optional: true }, + }; + + static defaultProps = { + size: 1, + } +} \ No newline at end of file diff --git a/awesome_dashboard/static/src/dashboard_item/dashboardItem.xml b/awesome_dashboard/static/src/dashboard_item/dashboardItem.xml new file mode 100644 index 00000000000..bd223e48bb8 --- /dev/null +++ b/awesome_dashboard/static/src/dashboard_item/dashboardItem.xml @@ -0,0 +1,10 @@ + + + +
+
+ +
+
+
+
diff --git a/awesome_dashboard/static/src/pie_chart/pieChart.js b/awesome_dashboard/static/src/pie_chart/pieChart.js new file mode 100644 index 00000000000..91962aaddc3 --- /dev/null +++ b/awesome_dashboard/static/src/pie_chart/pieChart.js @@ -0,0 +1,52 @@ +import { Component, onWillUnmount, useEffect, useRef, onWillStart } from "@odoo/owl"; +import { loadJS } from "@web/core/assets"; + +export class PieChart extends Component { + static template = "awesome_dashboard.PieChart"; + + static props = { + label: {type: String, optional: true}, + data: { type: Array, element:{ + type: Object, shape: {label: String, value: Number } + } }, + }; + + setup() { + this.canvasRef = useRef("canvas"); + + this.chart = null; + + onWillStart(() => loadJS(["/web/static/lib/Chart/Chart.js"])); + + useEffect(() => this.renderChart()); + onWillUnmount(this.onWillUnmount); + } + + onWillUnmount() { + if (this.chart) { + this.chart.destroy(); + } + } + + getChartConfig() { + return { + type: "doughnut", + data: { + datasets: [{ + data: this.props.data.map((element) => element.value), + label: this.props.label + }], + labels: this.props.data.map((element) => element.label), + } + + } + } + + renderChart() { + if (this.chart) { + this.chart.destroy(); + } + const config = this.getChartConfig(); + this.chart = new Chart(this.canvasRef.el, config); + } +} \ No newline at end of file diff --git a/awesome_dashboard/static/src/pie_chart/pieChart.xml b/awesome_dashboard/static/src/pie_chart/pieChart.xml new file mode 100644 index 00000000000..3b72f3f32a8 --- /dev/null +++ b/awesome_dashboard/static/src/pie_chart/pieChart.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/awesome_owl/static/src/card/card.js b/awesome_owl/static/src/card/card.js new file mode 100644 index 00000000000..5d38cf9c797 --- /dev/null +++ b/awesome_owl/static/src/card/card.js @@ -0,0 +1,10 @@ +import { Component } from "@odoo/owl"; + +export class Card extends Component { + static template = "awesome_owl.Card"; + + static props = { + title: String, + content: String + }; +} \ No newline at end of file diff --git a/awesome_owl/static/src/card/card.xml b/awesome_owl/static/src/card/card.xml new file mode 100644 index 00000000000..5c05f4ab7d7 --- /dev/null +++ b/awesome_owl/static/src/card/card.xml @@ -0,0 +1,12 @@ + + +
+
+
+

+ +

+
+
+
+
\ No newline at end of file diff --git a/awesome_owl/static/src/counter/counter.js b/awesome_owl/static/src/counter/counter.js new file mode 100644 index 00000000000..1fbc4609bf7 --- /dev/null +++ b/awesome_owl/static/src/counter/counter.js @@ -0,0 +1,18 @@ +import { Component, useState } from "@odoo/owl"; + +export class Counter extends Component { + static template = "awesome_owl.Counter"; + + static props = { + onChange: { type: Function, optional: true } + } + + setup() { + this.state = useState({ value: 0 }); + } + + increment() { + this.state.value++; + if (this.props.onChange) this.props.onChange(); + } +} \ No newline at end of file diff --git a/awesome_owl/static/src/counter/counter.xml b/awesome_owl/static/src/counter/counter.xml new file mode 100644 index 00000000000..16c7fc98a25 --- /dev/null +++ b/awesome_owl/static/src/counter/counter.xml @@ -0,0 +1,5 @@ + + +

Counter:

+
+
\ No newline at end of file diff --git a/awesome_owl/static/src/playground.js b/awesome_owl/static/src/playground.js index 4ac769b0aa5..e44685eb1fb 100644 --- a/awesome_owl/static/src/playground.js +++ b/awesome_owl/static/src/playground.js @@ -1,5 +1,21 @@ -import { Component } from "@odoo/owl"; +import { Component, markup, useState } from "@odoo/owl"; +import { Counter } from "./counter/counter"; +import { Card } from "./card/card"; +import { TodoList } from "./todoList/todoList"; export class Playground extends Component { static template = "awesome_owl.playground"; + + value2 = markup("Test"); + + setup() { + this.total = useState({ value: 0 }); + } + + incrementSum() { + console.log("aaa") + this.total.value++; + } + + static components = { Counter, Card, TodoList }; } diff --git a/awesome_owl/static/src/playground.xml b/awesome_owl/static/src/playground.xml index 4fb905d59f9..b58b3d56c61 100644 --- a/awesome_owl/static/src/playground.xml +++ b/awesome_owl/static/src/playground.xml @@ -1,10 +1,13 @@ -
- hello world + hello world
+ + + + +
-
diff --git a/awesome_owl/static/src/todoList/todoItem/todoItem.js b/awesome_owl/static/src/todoList/todoItem/todoItem.js new file mode 100644 index 00000000000..d8815219e87 --- /dev/null +++ b/awesome_owl/static/src/todoList/todoItem/todoItem.js @@ -0,0 +1,11 @@ +import { Component } from "@odoo/owl"; + +export class TodoItem extends Component { + static template = "awesome_owl.TodoItem"; + + static props = { + id: Number, + description: String, + isCompleted: Boolean + }; +} \ No newline at end of file diff --git a/awesome_owl/static/src/todoList/todoItem/todoItem.xml b/awesome_owl/static/src/todoList/todoItem/todoItem.xml new file mode 100644 index 00000000000..849e9fbe89a --- /dev/null +++ b/awesome_owl/static/src/todoList/todoItem/todoItem.xml @@ -0,0 +1,7 @@ + + +
+ . +
+
+
\ No newline at end of file diff --git a/awesome_owl/static/src/todoList/todoList.js b/awesome_owl/static/src/todoList/todoList.js new file mode 100644 index 00000000000..ef78c56a013 --- /dev/null +++ b/awesome_owl/static/src/todoList/todoList.js @@ -0,0 +1,20 @@ +import { Component, useState } from "@odoo/owl"; +import { TodoItem } from "./todoItem/todoItem"; + +export class TodoList extends Component { + static template = "awesome_owl.TodoList"; + + setup() { + this.todos = useState([]); + this.id = 0; + } + + addTodo(event){ + if (event.keyCode == 13){ + console.log(event) + this.todos.push({id: this.id++, description: event.target.value, isCompleted:false}) + } + } + + static components = { TodoItem }; +} \ No newline at end of file diff --git a/awesome_owl/static/src/todoList/todoList.xml b/awesome_owl/static/src/todoList/todoList.xml new file mode 100644 index 00000000000..64fcc2482b7 --- /dev/null +++ b/awesome_owl/static/src/todoList/todoList.xml @@ -0,0 +1,12 @@ + + +
+
+ + +

+
+
+
+
+
\ No newline at end of file diff --git a/estate/__init__.py b/estate/__init__.py new file mode 100644 index 00000000000..0650744f6bc --- /dev/null +++ b/estate/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/estate/__manifest__.py b/estate/__manifest__.py new file mode 100644 index 00000000000..ea16ec3924f --- /dev/null +++ b/estate/__manifest__.py @@ -0,0 +1,35 @@ +{ + 'name': "Real Estate", + + 'summary': """ + Server framework 101: A New Application" + """, + + 'description': """ + Starting module for "Server framework 101: A New Application" + """, + + 'author': "Odoo", + 'website': "https://www.odoo.com/", + 'category': 'Tutorials', + 'version': '0.1', + 'application': True, + 'installable': True, + 'depends': ['base'], + + 'data': [ + "data/estate.tag.csv", + "data/estate.property.type.csv", + "data/estate.property.csv", + "security/ir.model.access.csv", + "views/estate_property_views.xml", + "views/estate_property_offer_views.xml", + "views/estate_property_type_views.xml", + "views/estate_tag_views.xml", + "views/estate_menu_views.xml", + "views/res_user_views.xml" + ], + 'assets': { + }, + 'license': 'LGPL-3' +} diff --git a/estate/data/estate.property.csv b/estate/data/estate.property.csv new file mode 100644 index 00000000000..77e77dd510f --- /dev/null +++ b/estate/data/estate.property.csv @@ -0,0 +1,3 @@ +"id","name","expecting_price","living_area","total_area","property_type_id:id" +estate_tag_1,"Odoo Farm 2",300000,1900,2000,estate_property_type_1 +estate_tag_2,"Odoo LLN",1000000,0,40000,estate_property_type_3 diff --git a/estate/data/estate.property.type.csv b/estate/data/estate.property.type.csv new file mode 100644 index 00000000000..fdd166bc44b --- /dev/null +++ b/estate/data/estate.property.type.csv @@ -0,0 +1,4 @@ +"id","name","livable" +estate_property_type_1,House,1 +estate_property_type_2,Apartment,1 +estate_property_type_3,Office,0 diff --git a/estate/data/estate.tag.csv b/estate/data/estate.tag.csv new file mode 100644 index 00000000000..ac50db43319 --- /dev/null +++ b/estate/data/estate.tag.csv @@ -0,0 +1,3 @@ +"id","name","color" +estate_property_1,"Leased",5 +estate_property_2,"Empty",8 diff --git a/estate/models/__init__.py b/estate/models/__init__.py new file mode 100644 index 00000000000..aee2d35659f --- /dev/null +++ b/estate/models/__init__.py @@ -0,0 +1,5 @@ +from . import estate_tag +from . import estate_property_type +from . import estate_property_offer +from . import estate_property +from . import res_users diff --git a/estate/models/estate_property.py b/estate/models/estate_property.py new file mode 100644 index 00000000000..ad8734f2d51 --- /dev/null +++ b/estate/models/estate_property.py @@ -0,0 +1,144 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import _, api, fields, models +from odoo.exceptions import UserError + + +class Property(models.Model): + _name = "estate.property" + _description = "Real Estate Property" + _order = "id" + + name = fields.Char("Name", required=True, translate=True) + + description = fields.Char("Description") + + stage = fields.Selection([ + ("new", "New"), + ("offer_received", "Offer Received"), + ("offer_accepted", "Offer Accepted"), + ("sold", "Sold"), + ("cancelled", "Cancelled") + ], default="new", copy=False) + + currency_id = fields.Many2one("res.currency", "Currency") + expecting_price = fields.Monetary("Expecting Price", required=True) + best_offer = fields.Monetary("Best Offer", default=0, compute="_compute_best_offer", store=True) + selling_price = fields.Monetary("Selling Price", default=0, readonly=True) + + seller_id = fields.Many2one("res.users", string="Salesperson", index=True, default=lambda self: self.env.user) + buyer_id = fields.Many2one("res.partner", string="Buyer", index=True) + + postcode = fields.Integer("Postcode") + bedroom_number = fields.Integer("Bedrooms", default=0) + facade_number = fields.Integer("Facades", default=0) + garage = fields.Boolean("Garage", default=False) + garden = fields.Boolean("Garden", default=False) + + living_area = fields.Integer("Living Area (sqm)", default=0) + garden_area = fields.Integer("Garden Area (sqm)", default=0) + total_area = fields.Integer("Total Area (sqm)", default=0, compute="_compute_total_area", inverse="_inverse_total_area", store=True) + + garden_orientation = fields.Selection([ + ("north", "North"), + ("south", "South"), + ("east", "East"), + ("west", "West") + ]) + + def _current_date(self): + return fields.Date.today() + + available_from = fields.Date("Date", default=_current_date) + + active = fields.Boolean("Active", default=True) + sequence = fields.Integer(default=10) + + property_type_id = fields.Many2one("estate.property.type", string="Property Type") + property_livable = fields.Boolean("Livable", compute="_compute_property_livable") + + tag_ids = fields.Many2many("estate.tag", string="Tags") + + offer_ids = fields.One2many("estate.property.offer", "property_id", string="Offers") + + @api.depends("living_area", "garden_area") + def _compute_total_area(self): + for property in self: + property.total_area = property.living_area + property.garden_area + + @api.onchange("total_area") + def _inverse_total_area(self): + for property in self: + temp_total_area = property.total_area + property.living_area = max(0, temp_total_area - property.garden_area) + property.garden_area = temp_total_area - property.living_area + + @api.onchange("garden") + def _onchange_garden(self): + for property in self: + if property.garden: + property.garden_orientation = "north" + property.garden_area = 10 + else: + property.garden_orientation = "" + property.garden_area = 0 + + @api.depends("property_type_id.livable") + def _compute_property_livable(self): + for property in self: + property.property_livable = property.property_type_id.livable + + @api.depends("offer_ids.translated_price") + def _compute_best_offer(self): + for property in self: + property.best_offer = max([0, *property.offer_ids.mapped("translated_price")]) + + def action_set_as_cancelled(self): + for property in self: + if property.stage in ["sold", "cancelled"]: + raise UserError(_("This property was already set as '%s'", Property.stage._selection[property.stage])) + property.stage = "cancelled" + return True + + def action_set_as_sold(self): + for property in self: + if property.stage in ["sold", "cancelled"]: + raise UserError(_("This property was already set as '%s'", Property.stage._selection[property.stage])) + property.stage = "sold" + return True + + @api.ondelete(at_uninstall=False) + def _unlink_except_if_advanced_stage(self): + for property in self: + if property.stage not in ["new", "cancelled"]: + raise UserError(_("You cannot delete this property (%s), it is not in a new or cancelled stage.", property.name)) + + _check_bedroom_number = models.Constraint( + 'CHECK(bedroom_number >= 0)', + 'The number of bedrooms can\'t be negative.', + ) + + _check_living_area = models.Constraint( + 'CHECK(living_area >= 0)', + 'The living area can\'t be negative.', + ) + + _check_garden_area = models.Constraint( + 'CHECK(garden_area >= 0)', + 'The garden area can\'t be negative.', + ) + + _check_total_area = models.Constraint( + 'CHECK(total_area >= 0)', + 'The total area can\'t be negative.', + ) + + _check_expected_price = models.Constraint( + 'CHECK(expecting_price > 0)', + 'The expected price has to be stricly positive' + ) + + _check_selling_price = models.Constraint( + 'CHECK(selling_price >= 0)', + 'The selling price has to be stricly positive' + ) diff --git a/estate/models/estate_property_offer.py b/estate/models/estate_property_offer.py new file mode 100644 index 00000000000..51b359d6729 --- /dev/null +++ b/estate/models/estate_property_offer.py @@ -0,0 +1,96 @@ +from odoo import _, api, fields, models +from odoo.exceptions import UserError, ValidationError + + +class PropertyOffer(models.Model): + _name = "estate.property.offer" + _description = "Offer" + _order = "sequence, id" + + property_id = fields.Many2one("estate.property", string="Property", required=True) + partner_id = fields.Many2one("res.partner", string="Partner", index=True, required=True) + property_type_id = fields.Many2one("estate.property.type", string="Property Type", related="property_id.property_type_id") + + # Deadline Part + def _current_date(self): + return fields.Date.today() + + def _seven_days_from_now_date(self): + return fields.Date.add(fields.Date.today(), days=7) + + deadline = fields.Date("Deadline", default=_seven_days_from_now_date) + creation_date = fields.Date("Creation Date", default=_current_date) + validity = fields.Integer("Validity (days)", store=True, compute="_compute_validity", inverse="_inverse_validity") + + # Currency Part + currency_id = fields.Many2one("res.currency", "Currency") + property_currency_id = fields.Many2one("res.currency", "Partner Currency", related="property_id.currency_id") + price = fields.Monetary("Original Price", required=True) + translated_price = fields.Monetary("Price", store=True, compute="_compute_translated_price") + + # State / validation part + status = fields.Selection([ + ("accepted", "Accepted"), + ("refused", "Refused"), + ], copy=False) + + sequence = fields.Integer("Sequence", default=0) + + # Deadline part + @api.depends("deadline") + def _compute_validity(self): + for offer in self: + offer.validity = (offer.deadline - offer.creation_date).days + + # Reverse from _compute_validity, with real-time update because otherwise it's only after closing the form + @api.onchange("validity") + def _inverse_validity(self): + for offer in self: + offer.deadline = fields.Date.add(offer.creation_date, days=offer.validity) + + # Currency part + + # Translate currency to the one of the property so it's easier to compare + # Also, the webpage doesn't like showing multiple currency signs (as $ and €), + # so we put everything in the base currency for display + + def _compute_currency(self): + if self.property_currency_id == self.currency_id: + return self.price + return self.currency_id._convert(self.price, self.property_currency_id) + + @api.depends("property_currency_id", "price", "currency_id") + def _compute_translated_price(self): + for offer in self: + offer.translated_price = offer._compute_currency() + + # Validation part + def action_confirm(self): + for offer in self: + if offer.property_id.stage in ["offer_accepted", "sold", "cancelled"]: + raise UserError(_("You can't accept new offers")) + offer.property_id.selling_price = offer.translated_price + offer.property_id.buyer_id = offer.partner_id + offer.property_id.stage = "offer_accepted" + offer.status = "accepted" + + def action_refuse(self): + for offer in self: + offer.status = "refused" + + @api.model_create_multi + def create(self, vals_list): + for val in vals_list: + property = self.env["estate.property"].browse(val["property_id"]) + if property.stage == "new": + property.stage = "offer_received" + + if property.stage != "offer_received": + raise ValidationError(_("You can't create offers at this point")) + + return super().create(vals_list) + + _check_price = models.Constraint( + 'CHECK(price > 0)', + 'The price has to be stricly positive' + ) diff --git a/estate/models/estate_property_type.py b/estate/models/estate_property_type.py new file mode 100644 index 00000000000..fcc917bff32 --- /dev/null +++ b/estate/models/estate_property_type.py @@ -0,0 +1,20 @@ +from odoo import api, fields, models + + +class PropertyType(models.Model): + _name = "estate.property.type" + _description = "Property Type" + _order = "name" + + name = fields.Char("Name", required=True, translate=True) + livable = fields.Boolean("Livable", default=True) + + property_ids = fields.One2many("estate.property", "property_type_id", string="Properties") + offer_ids = fields.One2many("estate.property.offer", "property_type_id", string="Property Offers") + + offer_count = fields.Integer("Offer Count", compute="_compute_offer_count") + + @api.depends("offer_ids") + def _compute_offer_count(self): + for property_type in self: + property_type.offer_count = len(property_type.offer_ids) diff --git a/estate/models/estate_tag.py b/estate/models/estate_tag.py new file mode 100644 index 00000000000..f43c4678bff --- /dev/null +++ b/estate/models/estate_tag.py @@ -0,0 +1,24 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + +from random import randint + + +class EstateTag(models.Model): + _name = "estate.tag" + _description = "Estate Tag" + _order = "name" + + def _default_color(self): + return randint(1, 11) + + name = fields.Char("Name", required=True, translate=True) + color = fields.Integer( + string='Color Index', default=lambda self: self._default_color(), + help='Tag color. No color means no display in kanban or front-end, to distinguish internal tags from public categorization tags.') + + _unique_name = models.Constraint( + 'UNIQUE(name)', + 'The tag name has to be unique', + ) diff --git a/estate/models/res_users.py b/estate/models/res_users.py new file mode 100644 index 00000000000..c50b64cac45 --- /dev/null +++ b/estate/models/res_users.py @@ -0,0 +1,9 @@ +from odoo import fields, models + + +class ResUsers(models.Model): + _inherit = "res.users" + + # Domain doesn't work + property_ids = fields.One2many("estate.property", "seller_id", string="Properties List", + domain=[('available_from', '<=', 'today'), ('stage', '!=', 'cancelled'), ('stage', '!=', 'sold')]) diff --git a/estate/security/ir.model.access.csv b/estate/security/ir.model.access.csv new file mode 100644 index 00000000000..b4c14386d9c --- /dev/null +++ b/estate/security/ir.model.access.csv @@ -0,0 +1,5 @@ +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 +access_estate_property_type,access_estate_property_type,model_estate_property_type,base.group_user,1,1,1,1 +access_estate_property_offer,access_estate_property_offer,model_estate_property_offer,base.group_user,1,1,1,1 +access_estate_tag,access_estate_tag,model_estate_tag,base.group_user,1,1,1,1 diff --git a/estate/static/description/icon.png b/estate/static/description/icon.png new file mode 100644 index 00000000000..12da2f0de3c Binary files /dev/null and b/estate/static/description/icon.png differ diff --git a/estate/views/estate_menu_views.xml b/estate/views/estate_menu_views.xml new file mode 100644 index 00000000000..e50f1db8a36 --- /dev/null +++ b/estate/views/estate_menu_views.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + diff --git a/estate/views/estate_property_offer_views.xml b/estate/views/estate_property_offer_views.xml new file mode 100644 index 00000000000..3bcc6da5e2a --- /dev/null +++ b/estate/views/estate_property_offer_views.xml @@ -0,0 +1,74 @@ + + + + estate.property.offer.view.search + estate.property.offer + + + + + + + + + + + + + + + estate.property.offer.form + estate.property.offer + +
+ + +

+ + + +

+ + + +
+ + + + + + + +
+
+
+
+ + + estate.property.offer.view.list + estate.property.offer + + + + + + + + + + + + + + Offers + estate.property.offer + list,form + + + + Offers + estate.property.offer + list,form + [('property_type_id', '=', active_id)] + +
diff --git a/estate/views/estate_property_type_views.xml b/estate/views/estate_property_type_views.xml new file mode 100644 index 00000000000..710decbc70a --- /dev/null +++ b/estate/views/estate_property_type_views.xml @@ -0,0 +1,71 @@ + + + + estate.property.type.view.search + estate.property.type + + + + + + + + + + + + estate.property.type.form + estate.property.type + +
+ +
+ +
+
+

+ +

+
+ + + + + + + + + + + + + + + +
+
+
+
+ + + estate.property.type.view.list + estate.property.type + + + + + + + + + + Property Types + estate.property.type + list,form + +
diff --git a/estate/views/estate_property_views.xml b/estate/views/estate_property_views.xml new file mode 100644 index 00000000000..b5d0bca3d48 --- /dev/null +++ b/estate/views/estate_property_views.xml @@ -0,0 +1,140 @@ + + + + estate.property.view.search + estate.property + + + + + + + + + + + estate.property.form + estate.property + +
+
+
+ + +
+ + +

+ +

+
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +