-
Notifications
You must be signed in to change notification settings - Fork 3k
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
60
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 all commits
Commits
Show all changes
60 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 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,21 @@ | ||
| { | ||
| 'name': 'estate', | ||
| 'author': 'Odoo S.A.', | ||
| 'depends': ['base'], | ||
| 'application': True, | ||
| 'license': 'LGPL-3', | ||
|
|
||
| 'data': [ | ||
| 'security/ir.model.access.csv', | ||
|
|
||
| 'views/estate_property_views.xml', | ||
| 'views/estate_property_type_views.xml', | ||
| 'views/estate_property_tag_views.xml', | ||
| 'views/estate_property_offer_views.xml', | ||
|
|
||
| 'views/estate_menus.xml', | ||
|
|
||
| 'views/res_users_view_form.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,5 @@ | ||
| from . import estate_property | ||
| from . import estate_property_type | ||
| from . import estate_property_tag | ||
| from . import estate_property_offer | ||
| from . import res_users |
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,101 @@ | ||
| from odoo import fields, models, api, tools | ||
| from odoo.exceptions import UserError, ValidationError | ||
|
|
||
|
|
||
| class EstateProperty(models.Model): | ||
| _name = 'estate.property' | ||
| _description = "Estate properties" | ||
| _order = 'id desc' | ||
|
|
||
| active = fields.Boolean(default=True) | ||
| state = fields.Selection([ | ||
| ('new', "New"), | ||
| ('offer_received', "Offer Received"), | ||
| ('offer_accepted', "Offer Accepted"), | ||
| ('sold', "Sold"), | ||
| ('cancelled', "Cancelled"), | ||
| ], | ||
| default='new' | ||
| ) | ||
| name = fields.Char(required=True, string="Title") | ||
| description = fields.Text() | ||
| postcode = fields.Char() | ||
| date_availability = fields.Date( | ||
| copy=False, | ||
| default=lambda self: fields.Date.add(fields.Date.today(), months=3), string="Available From") | ||
| expected_price = fields.Float(required=True) | ||
| selling_price = fields.Float(readonly=True, copy=False) | ||
| bedrooms = fields.Integer(default=2) | ||
| living_area = fields.Integer(string="Living Area (sqm)") | ||
| facades = fields.Integer() | ||
| garage = fields.Boolean() | ||
| garden = fields.Boolean() | ||
| garden_area = fields.Integer(string="Garden Area (sqm)") | ||
| garden_orientation = fields.Selection( | ||
| selection=[('north', "North"), ('south', "South"), ('east', "East"), ('west', "West")], | ||
| ) | ||
| property_type_id = fields.Many2one('estate.property.type', | ||
| string="Property Type") | ||
| buyer_id = fields.Many2one('res.partner', string="Buyer", copy=False) | ||
| salesman_id = fields.Many2one('res.users', string="Salesman", | ||
| default=lambda self: self.env.user) | ||
| property_tag_ids = fields.Many2many('estate.property.tag', string="Tags") | ||
| property_offer_ids = fields.One2many('estate.property.offer', 'property_id', string="Offers") | ||
| total_area = fields.Float(compute='_compute_total_area') | ||
| best_price = fields.Float(compute='_compute_best_price', | ||
| string="Best Offer") | ||
|
|
||
| _check_expected_price = models.Constraint( | ||
| 'CHECK(expected_price > 0)', | ||
| "The expected price of a property must be strictly positive.", | ||
| ) | ||
| _check_selling_price = models.Constraint( | ||
| 'CHECK(selling_price >= 0)', | ||
| "The selling price of a property must be positive.", | ||
| ) | ||
|
|
||
| @api.depends('living_area', 'garden_area') | ||
| def _compute_total_area(self): | ||
| for record in self: | ||
| record.total_area = record.living_area + record.garden_area | ||
|
|
||
| @api.depends('property_offer_ids.price') | ||
| def _compute_best_price(self): | ||
| for record in self: | ||
| record.best_price = max(record.property_offer_ids.mapped('price'), default=0) | ||
|
|
||
| @api.onchange('garden') | ||
| def _onchange_garden(self): | ||
| if self.garden: | ||
| self.garden_area = 10 | ||
| self.garden_orientation = 'north' | ||
| else: | ||
| self.garden_area = 0 | ||
| self.garden_orientation = '' | ||
|
|
||
| @api.constrains('selling_price', 'expected_price') | ||
| def _check_date_end(self): | ||
| for record in self: | ||
| if (len(record.property_offer_ids) != 0) and tools.float_utils.float_compare(record.expected_price * 0.9, record.selling_price, precision_digits=2) == 1: | ||
| raise ValidationError(self.env._("The selling price cannot be inferior to 90% of the expected price")) | ||
|
|
||
| @api.ondelete(at_uninstall=False) | ||
| def _check_state_before_unlink(self): | ||
| for record in self: | ||
| if record.state not in {'new', 'cancelled'}: | ||
| raise UserError(self.env._("Only new or cancelled properties can be deleted...")) | ||
|
|
||
| def action_sold(self): | ||
| for record in self: | ||
| if record.state == 'cancelled': | ||
| raise UserError(self.env._("Cancelled properties cannot be sold.")) | ||
| record.state = 'sold' | ||
| return True | ||
|
|
||
| def action_cancelled(self): | ||
| for record in self: | ||
| if record.state == 'sold': | ||
| raise UserError(self.env._("Sold properties cannot be cancelled.")) | ||
| record.state = 'cancelled' | ||
| return True | ||
|
|
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,58 @@ | ||
| from odoo import fields, models, api | ||
| from odoo.exceptions import UserError | ||
|
|
||
|
|
||
| class EstatePropertyOffer(models.Model): | ||
| _name = 'estate.property.offer' | ||
| _description = "Estate property offers" | ||
| _order = 'price desc' | ||
|
|
||
| price = fields.Float() | ||
| status = fields.Selection( | ||
| selection=[('accepted', "Accepted"), ('refused', "Refused")], | ||
| copy=False | ||
| ) | ||
| partner_id = fields.Many2one('res.partner', string="Partner", required=True) | ||
| property_id = fields.Many2one('estate.property', string="Property", required=True) | ||
| property_type_id = fields.Many2one(related='property_id.property_type_id') | ||
|
|
||
| validity = fields.Integer(default=7) | ||
| date_deadline = fields.Date(compute='_compute_deadline', inverse='_inverse_deadline', string="Deadline") | ||
|
|
||
| _check_price = models.Constraint( | ||
| 'CHECK(price > 0)', | ||
| "The price of an offer must be positive.", | ||
| ) | ||
|
|
||
| @api.depends('create_date', 'validity') | ||
| def _compute_deadline(self): | ||
| for record in self: | ||
| createDate = record.create_date or fields.Date.today() | ||
| record.date_deadline = fields.Date.add(createDate, days=record.validity) | ||
|
|
||
| def _inverse_deadline(self): | ||
| for record in self: | ||
| record.validity = (record.date_deadline - fields.Date.to_date(record.create_date)).days | ||
|
|
||
| @api.model | ||
| def create(self, vals_list): | ||
| for vals in vals_list: | ||
| propertyId = self.env['estate.property'].browse(vals['property_id']) | ||
| if propertyId.best_price > vals['price']: | ||
| raise UserError(self.env._("Cannot create an offer with a lower price than the best offer:%s",propertyId.best_price)) | ||
| propertyId.state = 'offer_received' | ||
| return super().create(vals_list) | ||
|
|
||
| def action_refuse(self): | ||
| for record in self: | ||
| record.status = 'refused' | ||
| return True | ||
|
|
||
| def action_accept(self): | ||
| for record in self: | ||
| for offer in record.property_id.property_offer_ids: | ||
| offer.status = 'refused' | ||
| record.status = 'accepted' | ||
| record.property_id.selling_price = record.price | ||
| record.property_id.buyer_id = record.partner_id | ||
| return True |
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 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class EstatePropertyTag(models.Model): | ||
| _name = 'estate.property.tag' | ||
| _description = "Estate property tags" | ||
| _order = 'name' | ||
|
|
||
| name = fields.Char(required=True) | ||
| color = fields.Integer() | ||
|
|
||
| _check_name = models.Constraint( | ||
| 'UNIQUE(name)', | ||
| "The name of property tag must be unique.", | ||
| ) |
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,27 @@ | ||
| from odoo import fields, models, api | ||
|
|
||
|
|
||
| class EstatePropertyType(models.Model): | ||
| _name = 'estate.property.type' | ||
| _description = "Estate property types" | ||
| _order = 'sequence, name' | ||
|
|
||
| sequence = fields.Integer('Sequence', default=1, help="Used to order stages. Lower is better.") | ||
|
|
||
| name = fields.Char(required=True) | ||
|
|
||
| property_ids = fields.One2many('estate.property', 'property_type_id') | ||
|
|
||
| offer_ids = fields.One2many('estate.property.offer', 'property_type_id') | ||
| offer_count = fields.Integer(compute='_compute_offer_count') | ||
|
|
||
| _check_name = models.Constraint( | ||
| 'UNIQUE(name)', | ||
| "The name of property type must be unique.", | ||
| ) | ||
|
|
||
| @api.depends('offer_ids') | ||
| def _compute_offer_count(self): | ||
| for record in self: | ||
| record.offer_count = len(record.offer_ids) | ||
| return True |
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 @@ | ||
| from odoo import fields, models | ||
|
|
||
|
|
||
| class resUsers(models.Model): | ||
| _name = 'res.users' | ||
| _inherit = 'res.users' | ||
|
|
||
| property_ids = fields.One2many('estate.property', 'salesman_id', domain=['|', ('state', '=', 'new'), ('state', '=', 'offer_received')]) |
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,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_tag,access_estate_property_tag,model_estate_property_tag,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 |
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,11 @@ | ||
| <odoo> | ||
| <menuitem id="estate_root_menu" name="Real Estate"> | ||
| <menuitem id="estate_advertisement_menu" name="Advertisements"> | ||
| <menuitem id="estate_property_menu_action" action="estate_property_action"/> | ||
| </menuitem> | ||
| <menuitem id="estate_setting_menu" name="Settings"> | ||
| <menuitem id="estate_property_type_menu_action" action="estate_property_type_action"/> | ||
| <menuitem id="estate_property_tag_menu_action" action="estate_property_tag_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,42 @@ | ||
| <odoo> | ||
| <record id="estate_property_offer_action" model="ir.actions.act_window"> | ||
| <field name="name">Properties Offers</field> | ||
| <field name="res_model">estate.property.offer</field> | ||
| <field name="view_mode">list,form</field> | ||
| <field name="domain">[("property_type_id", "=", active_id)]</field> | ||
| </record> | ||
|
|
||
|
|
||
| <record id="estate_property_offer_view_list" model="ir.ui.view"> | ||
| <field name="name">estate.property.offer.list</field> | ||
| <field name="model">estate.property.offer</field> | ||
| <field name="arch" type="xml"> | ||
| <list string="Property Offers" editable="bottom" decoration-success="status == 'accepted'" decoration-danger="status == 'refused'"> | ||
| <field name="price"/> | ||
| <field name="partner_id"/> | ||
| <field name="validity"/> | ||
| <field name="date_deadline"/> | ||
| <button name="action_accept" title="Accept" type="object" icon="fa-check" invisible="status in ['refused','accepted']"/> | ||
| <button name="action_refuse" title="Refuse" type="object" icon="fa-close" invisible="status in ['refused','accepted']"/> | ||
| <field name="status" invisible="status in ['refused','accepted']"/> | ||
| </list> | ||
| </field> | ||
| </record> | ||
|
|
||
|
|
||
| <record id="estate_property_offer_view_form" model="ir.ui.view"> | ||
| <field name="name">estate.property.offer.form</field> | ||
| <field name="model">estate.property.offer</field> | ||
| <field name="arch" type="xml"> | ||
| <form string="Property Offer"> | ||
| <group> | ||
| <field name="price"/> | ||
| <field name="partner_id"/> | ||
| <field name="validity"/> | ||
| <field name="date_deadline"/> | ||
| <field name="status"/> | ||
| </group> | ||
| </form> | ||
| </field> | ||
| </record> | ||
| </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,32 @@ | ||
| <odoo> | ||
| <record id="estate_property_tag_action" model="ir.actions.act_window"> | ||
| <field name="name">Property Tags</field> | ||
| <field name="res_model">estate.property.tag</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
|
|
||
|
|
||
| <record id="estate_property_tag_view_list" model="ir.ui.view"> | ||
| <field name="name">estate.property.tag.list</field> | ||
| <field name="model">estate.property.tag</field> | ||
| <field name="arch" type="xml"> | ||
| <list string="Property Tags" editable="bottom"> | ||
| <field name="name"/> | ||
| </list> | ||
| </field> | ||
| </record> | ||
|
|
||
| <record id="estate_property_tag_view_form" model="ir.ui.view"> | ||
| <field name="name">estate.property.tag.form</field> | ||
| <field name="model">estate.property.tag</field> | ||
| <field name="arch" type="xml"> | ||
| <form string="Property Tag"> | ||
| <sheet> | ||
| <group> | ||
| <field name="name"/> | ||
| </group> | ||
| </sheet> | ||
| </form> | ||
| </field> | ||
| </record> | ||
| </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,46 @@ | ||
| <odoo> | ||
| <record id="estate_property_type_action" model="ir.actions.act_window"> | ||
| <field name="name">Property Types</field> | ||
| <field name="res_model">estate.property.type</field> | ||
| <field name="view_mode">list,form</field> | ||
| </record> | ||
|
|
||
|
|
||
| <record id="estate_property_type_view_list" model="ir.ui.view"> | ||
| <field name="name">estate.property.type.list</field> | ||
| <field name="model">estate.property.type</field> | ||
| <field name="arch" type="xml"> | ||
| <list string="Property Types"> | ||
| <field name="sequence" widget="handle"/> | ||
| <field name="name"/> | ||
| </list> | ||
| </field> | ||
| </record> | ||
|
|
||
|
|
||
| <record id="estate_property_type_view_form" model="ir.ui.view"> | ||
| <field name="name">estate.property.type.form</field> | ||
| <field name="model">estate.property.type</field> | ||
| <field name="arch" type="xml"> | ||
| <form string="Property Type"> | ||
| <sheet> | ||
| <div class="oe_button_box" name="button_box"> | ||
| <button type="action" name="%(estate_property_offer_action)d" string="My Action" class="oe_stat_button" icon="fa-money"> | ||
| <field name="offer_count" string="Offer Count" widget="statinfo"/> | ||
| </button> | ||
| </div> | ||
| <h1> | ||
| <field name="name"/> | ||
| </h1> | ||
| <field name="property_ids"> | ||
| <list name="Properties"> | ||
| <field name="name"/> | ||
| <field name="expected_price"/> | ||
| <field name="state" string="status"/> | ||
| </list> | ||
| </field> | ||
| </sheet> | ||
| </form> | ||
| </field> | ||
| </record> | ||
| </odoo> |
Oops, something went wrong.
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.