Skip to content

Commit a3bdf2f

Browse files
committed
[IMP] estate: Chapter 14
1 parent 4462ec9 commit a3bdf2f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

estate/views/estate_property_views.xml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<record id="estate_property_action" model="ir.actions.act_window">
33
<field name="name">Properties</field>
44
<field name="res_model">estate.property</field>
5-
<field name="view_mode">list,form</field>
5+
<field name="view_mode">list,form,kanban</field>
66
<field name="context">{'search_default_available': True}</field>
77
</record>
88

@@ -101,4 +101,35 @@
101101
</search>
102102
</field>
103103
</record>
104+
105+
<record id="estate_property_kanban_view" model="ir.ui.view">
106+
<field name="name">estate.property.kanban</field>
107+
<field name="model">estate.property</field>
108+
<field name="arch" type="xml">
109+
<kanban default_group_by="property_type_id" records_draggable="False">
110+
<field name="state"/>
111+
<templates>
112+
<t t-name="card">
113+
<div>
114+
<field name="name" class="fw-bold"/>
115+
(<field name="property_type_id"/>)
116+
</div>
117+
<div>
118+
Expected Price:
119+
<field name="expected_price" string="Expected Price:"/>
120+
</div>
121+
<div t-if="record.state.raw_value == 'received'">
122+
Best Offer:
123+
<field name="best_offer"/>
124+
</div>
125+
<div t-if="record.state.raw_value == 'accepted'">
126+
Selling Price:
127+
<field name="selling_price"/>
128+
</div>
129+
<field name="tag_ids"/>
130+
</t>
131+
</templates>
132+
</kanban>
133+
</field>
134+
</record>
104135
</odoo>

0 commit comments

Comments
 (0)