Skip to content

Commit dc2f8de

Browse files
committed
[IMP] estate: remove buttons from view if property is cancelled or sold
1 parent 65fe366 commit dc2f8de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

estate/views/estate_property_views.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<form string="Property">
88
<header>
99
<button name="action_set_sold" type="object" string="SOLD" class="oe_highlight"
10-
invisible="state == 'sold'"/>
10+
invisible="state in ['sold', 'cancelled']"/>
1111
<button name="action_set_cancelled" type="object" string="CANCEL" class="oe_highlight"
12-
invisible="state == 'sold'"/>
12+
invisible="state in ['sold', 'cancelled']"/>
1313
<field name="state" widget="statusbar" statusbar_visible="new,offer_received,offer_accepted,sold"/>
1414
</header>
1515
<sheet>

0 commit comments

Comments
 (0)