Skip to content

Commit 86d8f5c

Browse files
committed
[ADD] estate: introduce kanban view for estate properties with dynamic pricing information
1 parent 92b51a5 commit 86d8f5c

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

estate/views/estate_property_views.xml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,37 @@
106106
</field>
107107
</record>
108108

109+
<record id="estate_property_view_kanban" model="ir.ui.view">
110+
<field name="name">estate.property.kanban</field>
111+
<field name="model">estate.property</field>
112+
<field name="arch" type="xml">
113+
<kanban default_group_by='property_type_id' records_draggable='False'>
114+
<field name='state' />
115+
<templates>
116+
<t t-name='card'>
117+
<h4>
118+
<field name='name' />
119+
</h4>
120+
<div>
121+
Expected Price: <field name='expected_price' />
122+
</div>
123+
<div t-if='record.state.raw_value == "offer_received"'>
124+
Best Offer: <field name='best_price' />
125+
</div>
126+
<div t-if='record.state.raw_value == "offer_accepted"'>
127+
Selling Price: <field name='selling_price' />
128+
</div>
129+
<field name='property_tag_ids' widget='many2many_tags' />
130+
</t>
131+
</templates>
132+
</kanban>
133+
</field>
134+
</record>
135+
109136
<record id="estate_property_action" model="ir.actions.act_window">
110137
<field name="name">Property</field>
111138
<field name="res_model">estate.property</field>
112-
<field name="view_mode">list,form</field>
139+
<field name="view_mode">list,kanban,form</field>
113140
<field name="context">{'search_default_state': True}</field>
114141
</record>
115142
</odoo>

0 commit comments

Comments
 (0)