File tree Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Expand file tree Collapse file tree 1 file changed +32
-1
lines changed Original file line number Diff line number Diff line change 4
4
<record id =" estate_property_action" model =" ir.actions.act_window" >
5
5
<field name =" name" >Properties</field >
6
6
<field name =" res_model" >estate.property</field >
7
- <field name =" view_mode" >tree,form</field >
7
+ <field name =" view_mode" >tree,form,kanban </field >
8
8
<field name =" context" >{'search_default_available': True}</field >
9
9
</record >
10
10
115
115
</field >
116
116
</record >
117
117
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" >
123
+ <field name =" state" />
124
+ <templates >
125
+ <t t-name =" kanban-box" >
126
+ <div class =" oe_kanban_global_click" >
127
+ <strong class =" o_kanban_record_title" >
128
+ <field name =" name" />
129
+ </strong >
130
+ <div >
131
+ Expected price: <field name =" expected_price" />
132
+ </div >
133
+ <div t-if =" record.state.value" >
134
+ <div t-if =" record.state.raw_value == 'offer_received' or record.state.raw_value == 'sold'" >
135
+ Best price: <field name =" best_price" />
136
+ </div >
137
+ <div t-if =" record.state.raw_value == 'offer_accepted' or record.state.raw_value == 'sold'" >
138
+ Selling price: <field name =" selling_price" />
139
+ </div >
140
+ </div >
141
+ <field name =" tag_ids" options =" {'color_field': 'color'}" />
142
+ </div >
143
+ </t >
144
+ </templates >
145
+ </kanban >
146
+ </field >
147
+ </record >
148
+
118
149
</odoo >
You can’t perform that action at this time.
0 commit comments