File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,13 @@ def _unlink_if_new_or_cancelled_state(self):
9191 def action_mark_sold (self ):
9292 for prop in self :
9393 if prop .state == "cancelled" :
94- raise UserError ("You cann't sell a cancelled property" )
94+ raise UserError ("You cannot sell a cancelled property" )
9595 prop .state = "sold"
9696 return True
9797
9898 def action_mark_cancel (self ):
9999 for prop in self :
100100 if prop .state == "sold" :
101- raise UserError ("You cann't cancell a sold property" )
101+ raise UserError ("You cannot cancel a sold property" )
102102 prop .state = "cancelled"
103103 return True
Original file line number Diff line number Diff line change 104104 </field >
105105 </record >
106106
107+ <record id =" estate_property_view_kanban" model =" ir.ui.view" >
108+ <field name =" name" >estate.property.kanban</field >
109+ <field name =" model" >estate.property</field >
110+ <field name =" arch" type =" xml" >
111+ <kanban default_group_by =" property_type_id" records_draggable =" 0" >
112+ <field name =" state" />
113+ <templates >
114+ <t t-name =" card" >
115+ <div >
116+ <field name =" name" />
117+ <div >Expected Price:
118+ <field name =" expected_price" />
119+ </div >
120+ <div t-if =" record.state.raw_value == 'offer_received'" >
121+ Best Price:
122+ <field name =" best_price" />
123+ </div >
124+ <div t-if =" record.state.raw_value == 'offer_accepted'" >
125+ Selling Price:
126+ <field name =" selling_price" />
127+ </div >
128+ <field name =" property_tag_ids" string =" Property Tags" widget =" many2many_tags" options =" {'color_field': 'color'}" />
129+ </div >
130+ </t >
131+ </templates >
132+ </kanban >
133+ </field >
134+ </record >
135+
107136 <record id =" estate_property_action" model =" ir.actions.act_window" >
108137 <field name =" name" >Properties</field >
109138 <field name =" res_model" >estate.property</field >
110- <field name =" view_mode" >list,form</field >
139+ <field name =" view_mode" >kanban, list,form</field >
111140 <field name =" context" >{'search_default_available': True}</field >
112141 </record >
113142</odoo >
You can’t perform that action at this time.
0 commit comments