File tree Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Expand file tree Collapse file tree 1 file changed +35
-2
lines changed Original file line number Diff line number Diff line change 21
21
<record id =" estate_property_action" model =" ir.actions.act_window" >
22
22
<field name =" name" >Estate property</field >
23
23
<field name =" res_model" >estate_property</field >
24
- <field name =" view_mode" >list,form</field >
24
+ <field name =" view_mode" >list,kanban, form</field >
25
25
<field name =" context" >{'search_default_state_availability_filter': True}</field >
26
26
</record >
27
27
113
113
</form >
114
114
</field >
115
115
</record >
116
-
116
+
117
+ <!-- Kanban View -->
118
+ <record id =" estate_property_view_kanban" model =" ir.ui.view" >
119
+ <field name =" name" >estate.property.kanban</field >
120
+ <field name =" model" >estate_property</field >
121
+ <field name =" arch" type =" xml" >
122
+ <kanban default_group_by =" state" records_draggable =" False" >
123
+ <templates >
124
+ <t t-name =" kanban-box" >
125
+ <div >
126
+ <group >
127
+ <h5 ><field name =" name" /></h5 >
128
+ Expected Price :
129
+ <field name =" expected_price" string =" Expected price" />
130
+ </group >
131
+ <div t-if =" ['offer received', 'offer accepted', 'sold'].includes(record.state.raw_value)" >
132
+ <group >
133
+ Best Offer : <field name =" best_price" string =" Best Price" />
134
+ </group >
135
+ </div >
136
+
137
+ <div t-if =" ['offer accepted', 'sold', 'Sold'].includes(record.state.raw_value)" >
138
+ Selling Price :
139
+ <field name =" selling_price" />
140
+ </div >
141
+ <field name =" tag_ids" widget =" many2many_tags" options =" {'color_field': 'color'}" />
142
+ <field name =" state" t-if =" false" />
143
+ </div >
144
+ </t >
145
+ </templates >
146
+ </kanban >
147
+ </field >
148
+ </record >
149
+
117
150
</odoo >
You can’t perform that action at this time.
0 commit comments