Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ce16fab
[ADD] estate: copy estate from 19.0-tutorial-trcaz branch
trcazier Sep 15, 2025
d31e6b3
[IMP] estate: add CSV data file for property type
trcazier Oct 1, 2025
d1be6e1
[IMP] estate: add default property data
trcazier Oct 1, 2025
e065871
[IMP] estate: add offer data & change property data ids
trcazier Oct 1, 2025
6b6d7c3
[IMP] estate: renamed property type data id for clarity
trcazier Oct 1, 2025
0c9993b
[FIX] estate: modify data to comply with estate model constraints
trcazier Oct 1, 2025
b043d1a
[FIX] estate: add xml file missing in manifest
trcazier Oct 1, 2025
c3bed90
[IMP] estate: improve 90% offer error message
trcazier Oct 1, 2025
a127540
[IMP] estate: add property type to property data
trcazier Oct 1, 2025
002dfba
[FIX] estate: fix runbot warning for string
trcazier Oct 1, 2025
44f4e3e
[IMP] estate: modify date to be evaluated based on module installatio…
trcazier Oct 1, 2025
c0f4786
[IMP] estate: accept 1 data offer and refuse 2 + fix same id
trcazier Oct 1, 2025
193323b
[IMP] estate: add new property with offers created inside the field
trcazier Oct 1, 2025
244c35d
[FIX] estate: modify _ format parameters for runbot style
trcazier Oct 1, 2025
a07d26c
[ADD] x_estate: add new importable module x_estate
trcazier Oct 2, 2025
1e82b73
[IMP] x_estate: add property_type model, views, menu, and add many2on…
trcazier Oct 2, 2025
bdb9f65
[IMP] x_estate: add property tags model, view, menu and property fiel…
trcazier Oct 2, 2025
6def407
[CLN] x_estate: add empty line at the end of files
trcazier Oct 2, 2025
0b05411
[IMP] x_estate: add offer model, view and add it to property model an…
trcazier Oct 2, 2025
a5a4058
[FIX] x_estate: change offer buyer relation from user to partner
trcazier Oct 3, 2025
8cb6ed6
[IMP] x_estate: add selling price field to property model
trcazier Oct 3, 2025
f368391
[IMP] x_estate: add offer action to accept offer in list view
trcazier Oct 3, 2025
94f4a3c
[IMP] x_estate: add total area computed field to property
trcazier Oct 3, 2025
9bc6f35
[IMP] x_estate: add json route to get properties as a public user
trcazier Oct 3, 2025
3e89bd5
[CLN] x_estate: reduce the number of lines
trcazier Oct 3, 2025
bad506f
[CLN] x_estate: reduce the number of lines
trcazier Oct 3, 2025
47d5056
[CLN] x_estate: add empty line at the end of file
trcazier Oct 3, 2025
4348d79
[IMP] x_estate: remove optional=disabled from date availability
trcazier Oct 3, 2025
d9cc923
[IMP] estate: make test data relative and remove optional
trcazier Oct 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions x_estate/models/x_real_estate_property_fields.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@
<field name="selection">[('x_north', "North"), ('x_south', "South"), ('x_east', "East"), ('x_west', "West")]</field>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't it asked to use ir.model.fields.selection?

</record>


<record id="field_real_estate_property_total_area" model="ir.model.fields">
<field name="model_id" ref="real_estate_property_model" />
<field name="name">x_total_area</field>
<field name="field_description">Total Area</field>
<field name="ttype">float</field>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes not much sense, but since other areas are integers, this one should be an integer as well

<field name="depends">x_living_area,x_garden_area</field>
<field name="compute"><![CDATA[
for property in self:
property['x_total_area'] = property.x_living_area + property.x_garden_area
]]></field>
</record>

<record id="field_real_estate_property_type_id" model="ir.model.fields">
<field name="model_id" ref="real_estate_property_model" />
<field name="name">x_property_type_id</field>
Expand Down
1 change: 1 addition & 0 deletions x_estate/views/x_real_estate_property_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<field name="x_garden"/>
<field name="x_garden_area" invisible="not x_garden"/>
<field name="x_garden_orientation" invisible="not x_garden"/>
<field name="x_total_area"/>
</group>
</page>
<page string="Offers">
Expand Down